From 2137895d9b7842ca01b30a34082b5a5b7be4d035 Mon Sep 17 00:00:00 2001 From: Jeff Olsen <572629+jeffols@users.noreply.github.com> Date: Sun, 14 Apr 2024 15:37:30 -0500 Subject: [PATCH] address PR comments --- tests/flake8_json_reporter_test.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/flake8_json_reporter_test.py b/tests/flake8_json_reporter_test.py index e12ed3c..b9f8759 100644 --- a/tests/flake8_json_reporter_test.py +++ b/tests/flake8_json_reporter_test.py @@ -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 = """\ @@ -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 = """\ @@ -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]}) @@ -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})