Loading tests/conftest.py +3 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,9 @@ def app(monkeypatch: pytest.MonkeyPatch) -> FastAPI: monkeypatch.setenv("APP_NAME", "test-srm") monkeypatch.setenv("APP_VERSION", "0.0.1") monkeypatch.setenv("APP_DESCRIPTION", "Test SRM") monkeypatch.setenv("POSTGRES_SETTINGS__URL", "url") monkeypatch.setenv("POSTGRES_SETTINGS__ECHO", "true") monkeypatch.setenv("POSTGRES_SETTINGS__CREATE_SCHEMA_ON_STARTUP", "true") return create_app() Loading Loading
tests/conftest.py +3 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,9 @@ def app(monkeypatch: pytest.MonkeyPatch) -> FastAPI: monkeypatch.setenv("APP_NAME", "test-srm") monkeypatch.setenv("APP_VERSION", "0.0.1") monkeypatch.setenv("APP_DESCRIPTION", "Test SRM") monkeypatch.setenv("POSTGRES_SETTINGS__URL", "url") monkeypatch.setenv("POSTGRES_SETTINGS__ECHO", "true") monkeypatch.setenv("POSTGRES_SETTINGS__CREATE_SCHEMA_ON_STARTUP", "true") return create_app() Loading