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

Function create_and_seed_db

tests/conftest.py:135–140  ·  view source on GitHub ↗

Create and seed the database.

()

Source from the content-addressed store, hash-verified

133
134
135async def create_and_seed_db():
136 """Create and seed the database."""
137 engine = await create_postgres_engine_from_env()
138 await create_db_schema(engine)
139 await seed_data(engine)
140 await engine.dispose()
141
142
143@pytest_asyncio.fixture(scope="session")

Callers 1

appFunction · 0.85

Calls 3

create_db_schemaFunction · 0.90
seed_dataFunction · 0.90

Tested by

no test coverage detected