orxtra v0.13.0 /tests.pg_fixtures
On this page

Session-scoped Postgres 16 testcontainer and per-test asyncpg pool with the full trace+dispatch+auth schema applied via the pgdesign-generated executor; skips gracefully without Docker.

#tests.pg_fixtures

#tests.pg_fixtures

PostgreSQL test fixtures using testcontainers.

Provides session-scoped PG container and per-test connection pool with the full orxtra schema (trace + dispatch + auth) applied via the pgdesign-generated executor.

#pg_container

python
def pg_container() -> Iterator[Any]

Start a PostgreSQL 18 container for integration tests.

18 is the documented minimum: the schema's id type defaults to the server-native uuidv7(), which first ships in PostgreSQL 18.

#pg_pool

python
async def pg_pool(pg_container: Any) -> AsyncIterator[asyncpg.Pool]

Create an asyncpg pool with the full orxtra schema.

Search