Skip to content

Commit

Permalink
Force /services/throw-error to work in tests.
Browse files Browse the repository at this point in the history
This helps Jenkins not fail things.
  • Loading branch information
mythmon committed Sep 21, 2012
1 parent af3483b commit c60ec4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 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
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit c60ec4c

Please sign in to comment.