zulip/zerver
Mateusz Mandera d708a1bea5 tests: Fix order of mock.patch in use_s3_backend.
This is a somewhat hacky and fragile fix. Due to the order in which
imports seem to happen, the original ordering breaks
RealmImportExportTest: if one of the `use_s3_backend` tests runs before
test_import_realm, the latter will fail while processing thumbnailing,
as S3UploadBackend ends up leaking and
zerver.worker.thumbnail.upload_backend is still set to S3.

By making that mock.patch the first one that gets entered, and thus the
last one to get cleaned up, we fix the leak and upload_backend is set
back to LocalUploadBackend as it should.
2024-10-29 10:43:10 -07:00
..
actions do_deactivate_stream: Remove unnecessary mutations. 2024-10-25 16:06:42 -07:00
data_import rocketchat: Validate custom emoji before larger data sets. 2024-10-17 12:25:18 -07:00
integration_fixtures/nagios
lib tests: Fix order of mock.patch in use_s3_backend. 2024-10-29 10:43:10 -07:00
management send_custom_email: Support specifying sender email address. 2024-10-24 14:36:48 -07:00
migrations migration: Rename previously archived streams to their original names. 2024-10-25 15:56:04 -07:00
models subscription: Include archived channels in streams list. 2024-10-25 16:06:40 -07:00
openapi do_deactivate_stream: Remove unnecessary mutations. 2024-10-25 16:06:42 -07:00
tests streams: Restrict access to archived streams. 2024-10-25 16:06:43 -07:00
tornado subscription: Include archived channels in streams list. 2024-10-25 16:06:40 -07:00
transaction_tests user_groups: Add add_can_members_group to user group. 2024-10-11 16:31:18 -07:00
views subscription: Include archived channels in streams list. 2024-10-25 16:06:40 -07:00
webhooks git webhooks: Handle assignment events better. 2024-10-24 12:46:39 -07:00
worker worker: Address sentry_sdk deprecations. 2024-10-22 10:05:01 -07:00
__init__.py
apps.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
context_processors.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
decorator.py upload: Use tusd for resumable, larger uploads. 2024-09-19 11:37:29 -07:00
filters.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
forms.py auth: Tweak invalid credentials error message. 2024-10-24 14:35:31 -07:00
logging_handlers.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
middleware.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
signals.py ruff: Bump target-version from py38 to py310. 2024-07-13 22:28:22 -07:00