Skip to content
Browse files

Force /services/throw-error to work in tests.

This helps Jenkins not fail things.
  • Loading branch information...
1 parent af3483b commit c60ec4cc19c48b638a7fb24c9278440e6b8789ed @mythmon committed Sep 20, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 fjord/base/tests/test_views.py
View
3 fjord/base/tests/test_views.py
@@ -1,3 +1,5 @@
+from django.test.utils import override_settings
+
from nose.tools import eq_
from fjord.base import views
@@ -60,6 +62,7 @@ def test_404(self):
eq_(request.status_code, 404)
self.assertTemplateUsed(request, '404.html')
+ @override_settings(SHOW_STAGE_NOTICE=True, SETTINGS_MODULE='fjord.settings')
def test_500(self):
with self.assertRaises(IntentionalException) as cm:
self.client.get('/services/throw-error')

0 comments on commit c60ec4c

Please sign in to comment.
Something went wrong with that request. Please try again.