diff options
Diffstat (limited to 'tests/utils.py')
-rw-r--r-- | tests/utils.py | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/tests/utils.py b/tests/utils.py index 1936481..beba759 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,11 +1,22 @@ +import shutil + from django.test import TestCase from django.core.management import call_command +from django.conf import settings class CollectStaticTestCase(TestCase): - def setUp(self): - call_command('collectstatic', interactive=False) - super(CollectStaticTestCase, self).setUp() + @classmethod + def setUpClass(cls): + super(CollectStaticTestCase, cls).setUpClass() + call_command('collectstatic', interactive=False, verbosity=0) + + +class NoCollectStaticTestCase(TestCase): + @classmethod + def setUpClass(cls): + super(NoCollectStaticTestCase, cls).setUpClass() + shutil.rmtree(settings.STATIC_ROOT, ignore_errors=True) def clean_css(string): |