Skip to content

Commit

Permalink
address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffols committed Apr 14, 2024
1 parent c96fe83 commit 2137895
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/flake8_json_reporter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ def run(formatter, violations):
formatter.stop()


def test_pretty_no_files(capsys, formatter):
def test_no_files(capsys, formatter):
run(formatter, {})
stdout, _ = capsys.readouterr()
assert stdout == "{}\n"


def test_pretty_single_file_no_violations(capsys, formatter):
def test_single_file_no_violations(capsys, formatter):
run(formatter, {"main.py": []})
stdout, _ = capsys.readouterr()
expected = """\
Expand All @@ -75,7 +75,7 @@ def test_pretty_single_file_no_violations(capsys, formatter):
assert stdout == expected


def test_pretty_multiple_files_no_violations(capsys, formatter):
def test_multiple_files_no_violations(capsys, formatter):
run(formatter, {"main.py": [], "__init__.py": []})
stdout, _ = capsys.readouterr()
expected = """\
Expand All @@ -87,7 +87,7 @@ def test_pretty_multiple_files_no_violations(capsys, formatter):
assert stdout == expected


def test_pretty_single_file_single_violation(
def test_single_file_single_violation(
capsys, formatter, violation
):
run(formatter, {"main.py": [violation]})
Expand All @@ -109,7 +109,7 @@ def test_pretty_single_file_single_violation(
assert stdout == expected


def test_pretty_single_file_multiple_violations(
def test_single_file_multiple_violations(
capsys, formatter, violation
):
run(formatter, {"main.py": [violation] * 3})
Expand Down

0 comments on commit 2137895

Please sign in to comment.