MCPcopy Create free account
hub / github.com/Azure-Samples/rag-postgres-openai-python / app

Function app

tests/conftest.py:144–150  ·  view source on GitHub ↗

Create a FastAPI app.

(mock_session_env)

Source from the content-addressed store, hash-verified

142
143@pytest_asyncio.fixture(scope="session")
144async def app(mock_session_env):
145 """Create a FastAPI app."""
146 if not Path("src/backend/static/").exists():
147 pytest.skip("Please generate frontend files first!")
148 app = create_app(testing=True)
149 await create_and_seed_db()
150 return app
151
152
153@pytest.fixture(scope="session")

Callers

nothing calls this directly

Calls 2

create_appFunction · 0.90
create_and_seed_dbFunction · 0.85

Tested by

no test coverage detected