Modified files
storeapi/main.py
---
+++
@@ -13,4 +13,3 @@
app = FastAPI(lifespan=lifespan)
app.include_router(posts_router)
-
storeapi/tests/conftest.py
---
+++
@@ -1,10 +1,13 @@
+import os
from typing import AsyncGenerator, Generator
import pytest
from fastapi.testclient import TestClient
from httpx import AsyncClient
-from storeapi.main import app
from storeapi.routers.posts import comments_table, post_table
+
+os.environ["ENV_STATE"] = "test"
+from storeapi.main import app # noqa: E402
@pytest.fixture(scope="session")