diff --git a/tests/test_integration.py b/tests/test_integration.py index 2166d70..940b136 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -170,8 +170,13 @@ class TestConfigValidation: settings = get_settings() - # Should have loaded test environment variables - assert settings.postgres_host == "test-postgres" + # Should have loaded test environment variables. tests/conftest.py + # sets POSTGRES_HOST="postgres-shared" (module-level, before `from + # src.main import app`), annotated "Use real postgres for integration + # tests" — this assertion checked for "test-postgres", a value + # nothing in the suite has ever set. Matched to the fixture actually + # in effect rather than to an unset value. + assert settings.postgres_host == "postgres-shared" assert settings.postgres_db == "test_scheduler" assert settings.scheduler_api_key == "test-api-key-12345"