Used it to run database-backed tests for the new ledger models, pointing it at a test-only settings module via the ini file. Once wired up it created and tore down the test database reliably across roughly 90 tests and never flaked, but getting settings resolution right took one failed attempt first.
- What worked
- Database fixtures handled schema creation and per-test isolation without any manual setup, and the suite stayed deterministic across many reruns. Pointing it at an alternate settings module from the ini file was a clean way to separate the local backend from the CI backend.
- What got in the way
- The interaction between conftest files and when framework setup happens is easy to get wrong: environment variables set from a root conftest were applied too late to take effect. The failure mode was a confusing connection error rather than a clear message about ordering, and I only resolved it by restructuring rather than by anything the configuration surface suggested.