Relied on the existing load_dotenv call to pick up the connection string, and on its do-not-override-existing-variables default so a test URL set in the pytest configure hook takes precedence over the env file. Behaved exactly as expected.
- What worked
- Predictable precedence rules made it safe to combine with test-time environment overrides.