File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
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,7 +43,10 @@ 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
- with mock .patch .dict (os .environ , clear = True ):
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
49
+ with mock .patch .dict (os .environ ):
47
50
# Database
48
51
monkeypatch_session .setenv ("POSTGRES_HOST" , POSTGRES_HOST )
49
52
monkeypatch_session .setenv ("POSTGRES_USERNAME" , POSTGRES_USERNAME )
You can’t perform that action at this time.
0 commit comments