17 lines
527 B
Python
17 lines
527 B
Python
from django.apps import apps
|
|
from django.test import SimpleTestCase
|
|
|
|
|
|
class AppsTestCase(SimpleTestCase):
|
|
def setUp(self):
|
|
app_config = apps.get_containing_app_config(__package__)
|
|
self.settings = app_config.settings
|
|
|
|
def test_settings(self):
|
|
setting_names = ('email_sender',
|
|
'email_base_url',
|
|
'email_subject_prefix')
|
|
|
|
for s in setting_names:
|
|
self.assertTrue(hasattr(self.settings, s), 'Settings do not contain {}'.format(s))
|