UPD: more test.
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
from django.apps import apps
|
||||
from django.test import SimpleTestCase
|
||||
|
||||
from dav_base.tests.generic import AppSetting, AppsTestCase
|
||||
|
||||
|
||||
class AppsTestCase(SimpleTestCase):
|
||||
def setUp(self):
|
||||
app_config = apps.get_containing_app_config(__package__)
|
||||
self.settings = app_config.settings
|
||||
class TestCase(AppsTestCase):
|
||||
app_config = apps.get_app_config('dav_auth')
|
||||
|
||||
def test_settings(self):
|
||||
setting_names = ('login_redirect_url',
|
||||
'logout_redirect_url')
|
||||
|
||||
for s in setting_names:
|
||||
self.assertTrue(hasattr(self.settings, s), 'Settings do not contain {}'.format(s))
|
||||
settings = (
|
||||
AppSetting('login_redirect_url', basestring),
|
||||
AppSetting('logout_redirect_url', basestring),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user