Commit 03c7f149 by Luis San Pablo

Test case for settings check

parent 13c66b9d
...@@ -18,6 +18,16 @@ class TestSettings(TestCase): ...@@ -18,6 +18,16 @@ class TestSettings(TestCase):
with self.assertRaises(ImportError): with self.assertRaises(ImportError):
settings.DEFAULT_RENDERER_CLASSES settings.DEFAULT_RENDERER_CLASSES
def test_loud_error_raised_on_removed_setting(self):
"""
Make sure user is alerted with an error when a removed setting
is set.
"""
with self.asserRaise(AttributeError):
APISettings({
'MAX_PAGINATE_BY': 100
})
class TestSettingTypes(TestCase): class TestSettingTypes(TestCase):
def test_settings_consistently_coerced_to_list(self): def test_settings_consistently_coerced_to_list(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment