File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 76
76
run : python3 -m pytest -s -vv --cov --cov-fail-under=85
77
77
- name : Run E2E tests with Playwright
78
78
id : e2e
79
- # if: runner.os != 'Windows'
80
79
run : |
81
80
playwright install chromium --with-deps
82
81
python3 -m pytest tests/e2e.py --tracing=retain-on-failure
Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ def monkeypatch_session():
43
43
@pytest .fixture (scope = "session" )
44
44
def mock_session_env (monkeypatch_session ):
45
45
"""Mock the environment variables for testing."""
46
+ # Note that this does *not* clear existing env variables by default-
47
+ # we used to specify clear=True but this caused issues with Playwright tests
48
+ # https://github.com/microsoft/playwright-python/issues/2506
46
49
with mock .patch .dict (os .environ ):
47
50
# Database
48
51
monkeypatch_session .setenv ("POSTGRES_HOST" , POSTGRES_HOST )
You can’t perform that action at this time.
0 commit comments