Linting
This commit is contained in:
parent
42edf1cfaf
commit
c31d59773a
2 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,7 @@ import os.path
|
||||||
|
|
||||||
PATH = os.path.dirname(os.path.abspath(__file__))
|
PATH = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|
||||||
|
|
||||||
class CustomTemplateTestCase(TestCase):
|
class CustomTemplateTestCase(TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.template = 'pages:index'
|
self.template = 'pages:index'
|
||||||
|
@ -20,6 +21,7 @@ class CustomTemplateTestCase(TestCase):
|
||||||
|
|
||||||
class ReverserTestCase(TestCase):
|
class ReverserTestCase(TestCase):
|
||||||
REVERSER_IDENT = 'reverser:reverser'
|
REVERSER_IDENT = 'reverser:reverser'
|
||||||
|
|
||||||
def test_reverser(self):
|
def test_reverser(self):
|
||||||
response = self.client.post(reverse(self.REVERSER_IDENT), data={'ident': 'pages:index'})
|
response = self.client.post(reverse(self.REVERSER_IDENT), data={'ident': 'pages:index'})
|
||||||
self.assertEqual(response.status_code, 302)
|
self.assertEqual(response.status_code, 302)
|
||||||
|
|
|
@ -4,6 +4,7 @@ from django.template.base import TemplateDoesNotExist
|
||||||
from django.http import Http404
|
from django.http import Http404
|
||||||
import markdown2
|
import markdown2
|
||||||
|
|
||||||
|
|
||||||
class CustomTemplate(TemplateView):
|
class CustomTemplate(TemplateView):
|
||||||
html_title = ""
|
html_title = ""
|
||||||
body_class = ""
|
body_class = ""
|
||||||
|
|
Reference in a new issue