summaryrefslogtreecommitdiffstats
path: root/hyperkitty/tests
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-02-26 16:20:33 +0100
committerAurélien Bompard <aurelien@bompard.org>2013-02-26 16:20:40 +0100
commit2df6a3857a9d75588a2242ae19d83b3355ad4bcc (patch)
treea94ec077f3358da9c51aa304318348ffc3edf3b6 /hyperkitty/tests
parent53a267a6862f641db789f53040ef2ba83ce43989 (diff)
downloadhyperkitty-2df6a3857a9d75588a2242ae19d83b3355ad4bcc.tar.gz
hyperkitty-2df6a3857a9d75588a2242ae19d83b3355ad4bcc.tar.xz
hyperkitty-2df6a3857a9d75588a2242ae19d83b3355ad4bcc.zip
Fix unit tests with django-assets
Diffstat (limited to 'hyperkitty/tests')
-rw-r--r--hyperkitty/tests/test_views.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/hyperkitty/tests/test_views.py b/hyperkitty/tests/test_views.py
index de4c738..e7fd9b4 100644
--- a/hyperkitty/tests/test_views.py
+++ b/hyperkitty/tests/test_views.py
@@ -31,14 +31,19 @@ from django.test.client import Client, RequestFactory
from django.test.utils import override_settings
from django.contrib.auth.models import User, AnonymousUser
from django.core.urlresolvers import reverse
+import django_assets.env
from hyperkitty.models import Rating
-@override_settings(USE_SSL=False, USE_INTERNAL_AUTH=True)
+@override_settings(USE_SSL=False, USE_INTERNAL_AUTH=True, DEBUG=True, ASSETS_DEBUG=True)
class AccountViewsTestCase(TestCase):
def setUp(self):
+ # Re-do the settings patching
+ # https://github.com/miracle2k/django-assets/issues/3
+ django_assets.env.reset()
+ django_assets.env.get_env()
self.client = Client()
def test_login(self):