mirror of https://github.com/zulip/zulip.git
d708a1bea5
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. |
||
---|---|---|
.. | ||
actions | ||
data_import | ||
integration_fixtures/nagios | ||
lib | ||
management | ||
migrations | ||
models | ||
openapi | ||
tests | ||
tornado | ||
transaction_tests | ||
views | ||
webhooks | ||
worker | ||
__init__.py | ||
apps.py | ||
context_processors.py | ||
decorator.py | ||
filters.py | ||
forms.py | ||
logging_handlers.py | ||
middleware.py | ||
signals.py |