Skip to content

Commit

Permalink
Rename test_print_result_* to test_print_json_*.
Browse files Browse the repository at this point in the history
  • Loading branch information
devdanzin committed Nov 2, 2023
1 parent a2268c4 commit c4cbc86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/test_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,21 @@
"""


def test_print_result_empty_json():
def test_print_json_empty_json():
stdout = StringIO()
with mock.patch("sys.stdout", stdout):
print_json([], ())
assert stdout.getvalue() == "[]\n"


def test_print_result_data_json():
def test_print_json_data_json():
stdout = StringIO()
with mock.patch("sys.stdout", stdout):
print_json(DATA, HEADERS)
assert stdout.getvalue() == JSON_DATA


def test_print_result_data_json_path():
def test_print_json_data_json_path():
stdout = StringIO()
with mock.patch("sys.stdout", stdout):
print_json(DATA, HEADERS, "some_path")
Expand Down

0 comments on commit c4cbc86

Please sign in to comment.