From c31d59773a313661793c91503d2378e54b286812 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 22 Jan 2016 08:40:01 +0000 Subject: [PATCH] Linting --- project/common/tests.py | 2 ++ project/common/views.py | 1 + 2 files changed, 3 insertions(+) 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 = ""