diff --git a/project/common/tests.py b/project/common/tests.py index ac0310d..465c435 100644 --- a/project/common/tests.py +++ b/project/common/tests.py @@ -4,6 +4,7 @@ import os.path PATH = os.path.dirname(os.path.abspath(__file__)) + class CustomTemplateTestCase(TestCase): def setUp(self): self.template = 'pages:index' @@ -20,6 +21,7 @@ class CustomTemplateTestCase(TestCase): class ReverserTestCase(TestCase): REVERSER_IDENT = 'reverser:reverser' + def test_reverser(self): response = self.client.post(reverse(self.REVERSER_IDENT), data={'ident': 'pages:index'}) self.assertEqual(response.status_code, 302) diff --git a/project/common/views.py b/project/common/views.py index 087cec0..006d2a9 100644 --- a/project/common/views.py +++ b/project/common/views.py @@ -4,6 +4,7 @@ from django.template.base import TemplateDoesNotExist from django.http import Http404 import markdown2 + class CustomTemplate(TemplateView): html_title = "" body_class = ""