Skip to content

Commit 437cffd

Browse files
author
Emmanouil Konstantinidis
committed
Tests for settings
1 parent b5c1e68 commit 437cffd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/tests.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from django.core.urlresolvers import reverse
22
from django.test import TestCase, override_settings
3+
from rest_framework_docs.settings import DRFSettings
34

45

56
class DRFDocsViewTests(TestCase):
@@ -11,6 +12,13 @@ class DRFDocsViewTests(TestCase):
1112
def setUp(self):
1213
super(DRFDocsViewTests, self).setUp()
1314

15+
def test_settings_module(self):
16+
17+
settings = DRFSettings()
18+
19+
self.assertEqual(settings.get_setting("HIDDEN"), False)
20+
self.assertEqual(settings.get_setting("TEST"), None)
21+
1422
def test_index_view_with_endpoints(self):
1523
"""
1624
Should load the drf focs view with all the endpoints.

0 commit comments

Comments
 (0)