summaryrefslogtreecommitdiff
path: root/tests/staticfiles_tests
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-05-12 08:52:23 +0200
committerGitHub <noreply@github.com>2020-05-12 08:52:23 +0200
commit0668164b4ac93a5be79f5b87fae83c657124d9ab (patch)
tree71c08a5331f99515fbc859484b61d452a045dbb3 /tests/staticfiles_tests
parente6ec76d2455d0fd57ad766acd3714538b24a8989 (diff)
downloaddjango-0668164b4ac93a5be79f5b87fae83c657124d9ab.tar.gz
Fixed E128, E741 flake8 warnings.
Diffstat (limited to 'tests/staticfiles_tests')
-rw-r--r--tests/staticfiles_tests/test_management.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/staticfiles_tests/test_management.py b/tests/staticfiles_tests/test_management.py
index f249b63140..a94f51e4dd 100644
--- a/tests/staticfiles_tests/test_management.py
+++ b/tests/staticfiles_tests/test_management.py
@@ -72,7 +72,7 @@ class TestFindStatic(TestDefaults, CollectionTestCase):
findstatic returns all candidate files if run without --first and -v1.
"""
result = call_command('findstatic', 'test/file.txt', verbosity=1, stdout=StringIO())
- lines = [l.strip() for l in result.split('\n')]
+ lines = [line.strip() for line in result.split('\n')]
self.assertEqual(len(lines), 3) # three because there is also the "Found <file> here" line
self.assertIn('project', lines[1])
self.assertIn('apps', lines[2])
@@ -82,7 +82,7 @@ class TestFindStatic(TestDefaults, CollectionTestCase):
findstatic returns all candidate files if run without --first and -v0.
"""
result = call_command('findstatic', 'test/file.txt', verbosity=0, stdout=StringIO())
- lines = [l.strip() for l in result.split('\n')]
+ lines = [line.strip() for line in result.split('\n')]
self.assertEqual(len(lines), 2)
self.assertIn('project', lines[0])
self.assertIn('apps', lines[1])
@@ -93,7 +93,7 @@ class TestFindStatic(TestDefaults, CollectionTestCase):
Also, test that findstatic returns the searched locations with -v2.
"""
result = call_command('findstatic', 'test/file.txt', verbosity=2, stdout=StringIO())
- lines = [l.strip() for l in result.split('\n')]
+ lines = [line.strip() for line in result.split('\n')]
self.assertIn('project', lines[1])
self.assertIn('apps', lines[2])
self.assertIn("Looking in the following locations:", lines[3])