Skip to content

Commit 2b81daf

Browse files
committed
Fix backend tests
1 parent add6131 commit 2b81daf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/tests/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import pytest
2+
import os
23

34
import api.security
45
from app import run
56
import app as _app
67

8+
os.environ['API_BASE_URL'] = '3.12.0=https://example.com,3.10.0=https://example.com'
9+
os.environ['API_VERSION'] = '3.12.0,3.10.0'
10+
711
@pytest.fixture(autouse=True)
812
def mock_cognito_variables(mocker):
913
mocker.patch.object(_app, 'CLIENT_ID', 'client-id')

0 commit comments

Comments
 (0)