Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
Update test case for flake8-docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Mar 21, 2017
1 parent 83ca6bc commit 75a62c6
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions tests/test_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,9 @@ def test_flake8_lint_a_py(app, caplog):

assert load_changes.called

assert len(lint.problems) == 1
assert len(lint.problems) == 3
problem = lint.problems[0]
assert problem.filename == 'a.py'
assert problem.line == 6


def test_jscs_lint_a_js(app, caplog):
Expand Down Expand Up @@ -281,7 +280,6 @@ def test_pep8_lint_a_py(app, caplog):
assert len(lint.problems) == 1
problem = lint.problems[0]
assert problem.filename == 'a.py'
assert problem.line == 6


def test_jsonlint_a_json(app, caplog):
Expand Down Expand Up @@ -526,10 +524,9 @@ def test_flake8_lint_a_py_with_custom_glob_pattern(app, caplog):

assert load_changes.called

assert len(lint.problems) == 1
assert len(lint.problems) == 3
problem = lint.problems[0]
assert problem.filename == 'b.pyx'
assert problem.line == 6


def test_flake8_lint_a_py_with_custom_regex_pattern(app, caplog):
Expand Down Expand Up @@ -571,10 +568,9 @@ def test_flake8_lint_a_py_with_custom_regex_pattern(app, caplog):

assert load_changes.called

assert len(lint.problems) == 1
assert len(lint.problems) == 3
problem = lint.problems[0]
assert problem.filename == 'b.pyx'
assert problem.line == 6


def test_yamllint_a_yml(app, caplog):
Expand Down Expand Up @@ -658,10 +654,9 @@ def test_flake8_lint_a_py_with_multi_custom_glob_patterns(app, caplog):

assert load_changes.called

assert len(lint.problems) == 1
assert len(lint.problems) == 3
problem = lint.problems[0]
assert problem.filename == 'b.pyx'
assert problem.line == 6


def test_bandit_lint_a_py(app, caplog):
Expand Down

0 comments on commit 75a62c6

Please sign in to comment.