settings: Move TEST_WORKER_DIR to computed_settings.

mypy_django_plugin can only access settings from zproject.settings.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
Zixuan James Li
2022-08-10 00:31:49 -04:00
committed by Tim Abbott
parent f994ba30b8
commit b0ffe45835
2 changed files with 3 additions and 2 deletions

View File

@@ -111,6 +111,8 @@ RUNNING_OPENAPI_CURL_TEST = False
GENERATE_STRIPE_FIXTURES = False GENERATE_STRIPE_FIXTURES = False
# This is overridden in test_settings.py for the test suites # This is overridden in test_settings.py for the test suites
BAN_CONSOLE_OUTPUT = False 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 # 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 # production deployments before starting the app. It consists of a series

View File

@@ -146,8 +146,7 @@ if not PUPPETEER_TESTS:
# Enable file:/// hyperlink support by default in tests # Enable file:/// hyperlink support by default in tests
ENABLE_FILE_LINKS = True ENABLE_FILE_LINKS = True
# These settings are set dynamically in `zerver/lib/test_runner.py`: # This is set dynamically in `zerver/lib/test_runner.py`.
TEST_WORKER_DIR = ""
# Allow setting LOCAL_UPLOADS_DIR in the environment so that the # Allow setting LOCAL_UPLOADS_DIR in the environment so that the
# frontend/API tests in test_server.py can control this. # frontend/API tests in test_server.py can control this.
if "LOCAL_UPLOADS_DIR" in os.environ: if "LOCAL_UPLOADS_DIR" in os.environ: