Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for TenantFileSystemStorage(), Refs django-tenants#249
according to documentation TenantFileSystemStorage() will create a separate directory for each schema_name under MEDIA_ROOT. This is not currently the case! My speculation is that this is broken because the subdir prefix is configured only once in the constructor of TenantFileSystemStorage() and then cached. Thus we end-up using the schema_name of the first tenant which happens to save files. The fact that TenantFileSystemStorageTestCase.test_format_string broke without changing anything else supports the above speculation. The reason is that the new test_files_are_saved_under_subdirectories_per_tenant() test method is executed *before* test_format_string()!
- Loading branch information