diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-12-31 10:01:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-31 10:01:31 +0100 |
| commit | d88ec42bd0a37340c8477a6f20bf26e58bd84735 (patch) | |
| tree | abd9422f7fb34a19579a74515ce84d9f472cd226 /tests/staticfiles_tests/test_management.py | |
| parent | 81ccf92f154c6d9eac3e30bac0aa67574d0ace15 (diff) | |
Used addCleanup() in tests where appropriate.
Diffstat (limited to 'tests/staticfiles_tests/test_management.py')
| -rw-r--r-- | tests/staticfiles_tests/test_management.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/staticfiles_tests/test_management.py b/tests/staticfiles_tests/test_management.py index 46e6f3e764..c0d3817383 100644 --- a/tests/staticfiles_tests/test_management.py +++ b/tests/staticfiles_tests/test_management.py @@ -468,18 +468,14 @@ class TestCollectionFilesOverride(CollectionTestCase): os.utime(self.testfile_path, (self.orig_atime - 1, self.orig_mtime - 1)) - self.settings_with_test_app = self.modify_settings( + settings_with_test_app = self.modify_settings( INSTALLED_APPS={"prepend": "staticfiles_test_app"}, ) with extend_sys_path(self.temp_dir): - self.settings_with_test_app.enable() - + settings_with_test_app.enable() + self.addCleanup(settings_with_test_app.disable) super().setUp() - def tearDown(self): - super().tearDown() - self.settings_with_test_app.disable() - def test_ordering_override(self): """ Test if collectstatic takes files in proper order |
