Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanouil Konstantinidis committed Jan 1, 2016
1 parent 0058d5b commit 9e8717e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rest_framework_docs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class DRFDocsView(TemplateView):

def get_context_data(self, **kwargs):
settings = DRFSettings().settings
if not settings["HIDE_DOCS"]:
if settings["HIDE_DOCS"]:
raise Http404("Django Rest Framework Docs are hidden. Check your settings.")

context = super(DRFDocsView, self).get_context_data(**kwargs)
Expand Down
2 changes: 1 addition & 1 deletion tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_settings_module(self):

settings = DRFSettings()

self.assertEqual(settings.get_setting("HIDE_DOCS"), True)
self.assertEqual(settings.get_setting("HIDE_DOCS"), False)
self.assertEqual(settings.get_setting("TEST"), None)

def test_index_view_with_endpoints(self):
Expand Down

0 comments on commit 9e8717e

Please sign in to comment.