diff options
| author | Florian Apolloner <florian@apolloner.eu> | 2014-04-21 14:51:52 +0200 |
|---|---|---|
| committer | Florian Apolloner <florian@apolloner.eu> | 2014-04-21 14:51:52 +0200 |
| commit | a4553e051087a026b7f52bfb56c0d880c39c9cc2 (patch) | |
| tree | 7a1b640e67688df7f2ae30a0353496098ba75a46 /tests/staticfiles_tests | |
| parent | 428c0bbe1bcd303560d7e96d7d2721ff3fdc0e3f (diff) | |
Fixed monkeypatching in a staticfiles test.
Diffstat (limited to 'tests/staticfiles_tests')
| -rw-r--r-- | tests/staticfiles_tests/tests.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/staticfiles_tests/tests.py b/tests/staticfiles_tests/tests.py index 77179fb79d..e5c24db6bf 100644 --- a/tests/staticfiles_tests/tests.py +++ b/tests/staticfiles_tests/tests.py @@ -279,14 +279,16 @@ class TestConfiguration(StaticFilesTestCase): command = collectstatic.Command() self.assertFalse(command.is_local_storage()) - storage.staticfiles_storage = storage.FileSystemStorage() + collectstatic.staticfiles_storage = storage.FileSystemStorage() command = collectstatic.Command() self.assertTrue(command.is_local_storage()) - storage.staticfiles_storage = DummyStorage() + collectstatic.staticfiles_storage = DummyStorage() command = collectstatic.Command() self.assertFalse(command.is_local_storage()) finally: + staticfiles_storage._wrapped = empty + collectstatic.staticfiles_storage = staticfiles_storage storage.staticfiles_storage = staticfiles_storage |
