ADD: support for pylint.
This commit is contained in:
@@ -6,7 +6,7 @@ from django.test import SimpleTestCase
|
||||
|
||||
|
||||
class BaseTemplateTestCase(SimpleTestCase):
|
||||
def assertInHTML_multi(self, response, needles, format_kwargs=None):
|
||||
def assertInHTMLMulti(self, response, needles, format_kwargs=None): # pylint: disable=invalid-name
|
||||
content = response.content.decode('utf-8')
|
||||
for needle in needles:
|
||||
if format_kwargs is not None:
|
||||
@@ -35,7 +35,7 @@ class BaseTemplateTestCase(SimpleTestCase):
|
||||
'<link type="text/css" href="{static_url}{base_prefix}css/local.css" rel="stylesheet" />',
|
||||
)
|
||||
|
||||
self.assertInHTML_multi(response, needles, format_kwargs)
|
||||
self.assertInHTMLMulti(response, needles, format_kwargs)
|
||||
|
||||
def test_bootstrap_css_links(self):
|
||||
response = self.response
|
||||
@@ -55,7 +55,7 @@ class BaseTemplateTestCase(SimpleTestCase):
|
||||
'<script type="text/javascript" src="{static_url}{base_prefix}bootstrap/js/bootstrap.min.js"></script>',
|
||||
)
|
||||
|
||||
self.assertInHTML_multi(response, needles, format_kwargs)
|
||||
self.assertInHTMLMulti(response, needles, format_kwargs)
|
||||
|
||||
def test_page_footer(self):
|
||||
response = self.response
|
||||
|
||||
Reference in New Issue
Block a user