pg-fixture-provides-per-test-isolation

IN premise

Each pg test receives an isolated `PgApi` instance via the `pg_api` fixture, which creates a fresh project namespace (UUID) and tears down after each test, ensuring zero shared state between tests.

Summary

Every test that uses the pg_api fixture gets its own completely separate database namespace, so tests can never accidentally interfere with each other's data. This means test ordering doesn't matter and failures are always reproducible in isolation.

Details

Sourceentries/2026/05/05/tests-test_pg.md