Skip to content

Commit add6131

Browse files
committed
Fix backend tests
1 parent bd6fc7c commit add6131

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

api/tests/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ def mock_cognito_variables(mocker):
1010
mocker.patch.object(_app, 'USER_POOL_ID', 'user-pool')
1111
mocker.patch.object(_app, 'CLIENT_SECRET', 'client-secret')
1212

13+
@pytest.fixture(autouse=True)
14+
def env_setup(monkeypatch):
15+
monkeypatch.setenv('API_BASE_URL', '3.12.0=https://example.com,3.10.0=https://example.com')
16+
monkeypatch.setenv('API_VERSION', ['3.12.0', '3.10.0'])
17+
18+
1319
@pytest.fixture()
1420
def app():
1521
app = run()

0 commit comments

Comments
 (0)