Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tests: Set LOCAL_AVATARS_DIR / LOCAL_FILES_DIR in tests.
Alex Vandiverdcd8947c1bd6
diff --git a/zproject/test_extra_settings.py b/zproject/test_extra_settings.pyindex 0c66c49931d..cbea88b7d67 100644--- a/zproject/test_extra_settings.py+++ b/zproject/test_extra_settings.py@@ -151,6 +151,9 @@ ENABLE_FILE_LINKS = True# frontend/API tests in test_server.py can control this.if "LOCAL_UPLOADS_DIR" in os.environ:LOCAL_UPLOADS_DIR = os.getenv("LOCAL_UPLOADS_DIR")+ assert LOCAL_UPLOADS_DIR is not None+ LOCAL_AVATARS_DIR = os.path.join(LOCAL_UPLOADS_DIR, "avatars")+ LOCAL_FILES_DIR = os.path.join(LOCAL_UPLOADS_DIR, "files")# Otherwise, we use the default value from dev_settings.pyS3_KEY = "test-key"