mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fix
This commit is contained in:
parent
432a9b2e4d
commit
912d0625f0
@ -14,10 +14,10 @@ class HelperTests(TestCase):
|
||||
slug = 'sampleplg'
|
||||
|
||||
# working sample
|
||||
response = render_template(ErrorSource(), 'sample/sample.html', {'abc': 123} )
|
||||
response = render_template(ErrorSource(), 'sample/sample.html', {'abc': 123})
|
||||
self.assertEqual(response, '<h1>123</h1>')
|
||||
|
||||
# Wrong sample
|
||||
response = render_template(ErrorSource(), 'sample/wrongsample.html', {'abc': 123} )
|
||||
response = render_template(ErrorSource(), 'sample/wrongsample.html', {'abc': 123})
|
||||
self.assertTrue('lert alert-block alert-danger' in response)
|
||||
self.assertTrue('Template file <em>sample/wrongsample.html</em>' in response)
|
||||
|
Loading…
Reference in New Issue
Block a user