zulip/zproject
Alex Vandiver dcd8947c1b tests: Set LOCAL_AVATARS_DIR / LOCAL_FILES_DIR in tests.
7ad06473b6 split out `LOCAL_AVATARS_DIR` and `LOCAL_FILES_DIR` as
derived values from `LOCAL_UPLOADS_DIR`.  However, this means that all
places which set `LOCAL_UPLOADS_DIR` need to potentially propagate
that change into the derived values if they come *after*
`computed_settings.py` is applied.  It did this successfully in
`zerver/lib/test_runner.py` and the `use_s3_backend` decorator, but
did not adjust the late-set `zproject/test_extra_settings.py`.

This causes tests to share a single common set of avatars and
attachments directories.  In puppeteer tests, this leads to assertion
failures checking `assert_is_local_storage_path`; in backend tests,
this leads to races when checking the contents of the local storage
directory when run in parallel mode.

Set `LOCAL_AVATARS_DIR` and `LOCAL_FILES_DIR` based on
`LOCAL_UPLOADS_DIR` when it is pulled from the environment during
testing.
2023-03-06 11:52:23 -08:00
..
jinja2 ruff: Fix S701 Consider using `autoescape=True`. 2023-01-26 10:16:30 -08:00
__init__.py
backends.py backends: Use staticfilesfor social auth logos. 2023-02-14 17:17:06 -05:00
computed_settings.py run-dev: Drop .py from script name. 2023-03-03 18:02:37 -08:00
config.py config: Remove Django base class from ZulipSettingsError. 2022-09-26 12:42:36 -07:00
configured_settings.py ruff: Fix M001 Unused `noqa` directive. 2022-11-03 12:10:15 -07:00
default_settings.py presence: Tweak and document presence tuning values. 2023-02-21 12:10:43 -08:00
dev_settings.py run-dev: Drop .py from script name. 2023-03-03 18:02:37 -08:00
dev_urls.py settings: Allow customization of STATIC_URL. 2023-02-14 17:17:06 -05:00
email_backends.py email_backends: Fix type annotation of EmailLogBackEnd. 2022-07-29 14:58:11 -07:00
legacy_urls.py legacy_urls: Add type annotation to legacy_urls. 2022-08-12 17:08:04 -07:00
prod_settings.pyi lint: Replace pycodestyle and pyflakes with ruff. 2022-11-03 12:10:15 -07:00
prod_settings_template.py docs: Document how to use SMTP without authentication. 2023-02-27 11:59:48 -08:00
sentry.py puppet: Add a sentry release class. 2023-02-10 15:53:10 -08:00
settings.py ruff: Fix M001 Unused `noqa` directive. 2022-11-03 12:10:15 -07:00
settings_types.py settings_type: Extract new module for types used in settings. 2022-09-26 12:42:36 -07:00
template_loaders.py template_loaders: Extract TwoFactorLoader to new module. 2022-09-26 12:42:36 -07:00
test_extra_settings.py tests: Set LOCAL_AVATARS_DIR / LOCAL_FILES_DIR in tests. 2023-03-06 11:52:23 -08:00
test_settings.py ruff: Fix M001 Unused `noqa` directive. 2022-11-03 12:10:15 -07:00
urls.py run-dev: Drop .py from script name. 2023-03-03 18:02:37 -08:00
wsgi.py