Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Move TEST_WORKER_DIR to computed_settings.

Zixuan James Lib0ffe45835f7
diff --git a/zproject/computed_settings.py b/zproject/computed_settings.py
index d96d1dcfbc4..4aaf2b958d3 100644
--- a/zproject/computed_settings.py
+++ b/zproject/computed_settings.py
@@ -111,6 +111,8 @@ RUNNING_OPENAPI_CURL_TEST = False
GENERATE_STRIPE_FIXTURES = False
# This is overridden in test_settings.py for the test suites
BAN_CONSOLE_OUTPUT = False
+# This is overridden in test_settings.py for the test suites
+TEST_WORKER_DIR = ""
# These are the settings that we will check that the user has filled in for
# production deployments before starting the app. It consists of a series
diff --git a/zproject/test_extra_settings.py b/zproject/test_extra_settings.py
index 842aeee492f..02b80376cfd 100644
--- a/zproject/test_extra_settings.py
+++ b/zproject/test_extra_settings.py
@@ -146,8 +146,7 @@ if not PUPPETEER_TESTS:
# Enable file:/// hyperlink support by default in tests
ENABLE_FILE_LINKS = True
-# These settings are set dynamically in `zerver/lib/test_runner.py`:
-TEST_WORKER_DIR = ""
+# This is set dynamically in `zerver/lib/test_runner.py`.
# Allow setting LOCAL_UPLOADS_DIR in the environment so that the
# frontend/API tests in test_server.py can control this.
if "LOCAL_UPLOADS_DIR" in os.environ: