Page MenuHomeSoftware Heritage

D2574.diff
No OneTemporary

D2574.diff

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

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

Event Timeline