Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7124728
D2574.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
553 B
Subscribers
None
D2574.diff
View Options
diff --git a/swh/web/settings/tests.py b/swh/web/settings/tests.py
--- a/swh/web/settings/tests.py
+++ b/swh/web/settings/tests.py
@@ -7,6 +7,7 @@
Django tests settings for swh-web.
"""
+import os
import sys
from swh.web.config import get_config
@@ -94,7 +95,7 @@
}
# when not running unit tests, make the webapp fetch data from memory storages
-if 'pytest' not in sys.argv[0]:
+if 'pytest' not in sys.argv[0] and 'PYTEST_XDIST_WORKER' not in os.environ:
swh_web_config.update({
'debug': True,
'e2e_tests_mode': True
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Dec 21 2024, 6:01 PM (11 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3222050
Attached To
D2574: settings/tests: Fix tests when using pytest-xdist
Event Timeline
Log In to Comment