Skip to content

Commit deb8a16

Browse files
authored
checkqa: run flake8 on tests (#691)
1 parent b1ab663 commit deb8a16

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/test_fixtures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,9 +581,9 @@ class Migration(migrations.Migration):
581581
bases=None,
582582
),
583583
]
584-
""",
584+
""", # noqa: E501
585585
"migrations/0002_custom_user_model.py",
586-
) # noqa
586+
)
587587

588588
result = django_testdir.runpytest_subprocess("-s")
589589
result.stdout.fnmatch_lines(["*1 passed*"])

tests/test_manage_py_scan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ def test_runs_without_error_on_long_args(django_testdir):
131131
"""
132132
def test_this_is_a_long_message_which_caused_a_bug_when_scanning_for_manage_py_12346712341234123412341234123412341234123412341234123412341234123412341234123412341234123412341234123412341234123412341234123412341234123412341234123412341234112341234112451234123412341234123412341234123412341234123412341234123412341234123412341234123412341234():
133133
assert 1 + 1 == 2
134-
"""
134+
""" # noqa: E501
135135
)
136136

137137
result = django_testdir.runpytest_subprocess(
138138
"-k",
139-
"this_is_a_long_message_which_caused_a_bug_when_scanning_for_manage_py_12346712341234123412341234123412341234123412341234123412341234123412341234123412341234123412341234123412341234123412341234123412341234123412341234123412341234112341234112451234123412341234123412341234123412341234123412341234123412341234123412341234123412341234",
139+
"this_is_a_long_message_which_caused_a_bug_when_scanning_for_manage_py_12346712341234123412341234123412341234123412341234123412341234123412341234123412341234123412341234123412341234123412341234123412341234123412341234123412341234112341234112451234123412341234123412341234123412341234123412341234123412341234123412341234123412341234", # noqa: E501
140140
"django_project_root",
141141
)
142142
assert result.ret == 0

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ deps =
5151
flake8
5252
commands =
5353
flake8 --version
54-
flake8 --show-source --statistics {posargs:pytest_django pytest_django_test}
54+
flake8 --statistics {posargs:pytest_django pytest_django_test tests}
5555

5656
[testenv:doc8]
5757
basepython = python3.6

0 commit comments

Comments
 (0)