diff --git a/testsobol/mainapp/context_processor.py b/testsobol/mainapp/context_processor.py index 0307532..9c52ddc 100644 --- a/testsobol/mainapp/context_processor.py +++ b/testsobol/mainapp/context_processor.py @@ -1,4 +1,5 @@ from django.conf import settings + def settings_context_processor(request): - return {'settings':settings} + return {'settings': settings} diff --git a/testsobol/mainapp/tests.py b/testsobol/mainapp/tests.py index fa5db2b..e3c9c91 100644 --- a/testsobol/mainapp/tests.py +++ b/testsobol/mainapp/tests.py @@ -45,11 +45,12 @@ def test(self): class SettingsContextTest(TestCase): - + def test(self): page = self.client.get('') self.assertEqual(page.status_code, 200) self.assertTrue(page.context['settings']) + self.assertEqual(page.context['settings'].STATIC_URL, '/static/') class NameUrlTest(TestCase):