Skip to content

Commit

Permalink
Fixes #53: Change default error to 500
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarkentin committed Nov 5, 2015
1 parent d25f3c2 commit 98d4e9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_views.py
Expand Up @@ -209,7 +209,7 @@ def test_default_error_code(self, patched_check_databases):
'check': 'watchman.checks.databases',
})
response = views.status(request)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.status_code, 500)

def tearDown(self):
pass
Expand Down
2 changes: 1 addition & 1 deletion watchman/settings.py
Expand Up @@ -5,7 +5,7 @@
WATCHMAN_AUTH_DECORATOR = getattr(settings, 'WATCHMAN_AUTH_DECORATOR', 'watchman.decorators.token_required')
WATCHMAN_TOKEN = getattr(settings, 'WATCHMAN_TOKEN', None)
WATCHMAN_TOKEN_NAME = getattr(settings, 'WATCHMAN_TOKEN_NAME', 'watchman-token')
WATCHMAN_ERROR_CODE = getattr(settings, 'WATCHMAN_ERROR_CODE', 200)
WATCHMAN_ERROR_CODE = getattr(settings, 'WATCHMAN_ERROR_CODE', 500)

DEFAULT_CHECKS = (
'watchman.checks.caches',
Expand Down

0 comments on commit 98d4e9a

Please sign in to comment.