Skip to content

Commit

Permalink
testing: raising a pytest error in test_output.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rebekahrudd committed Oct 24, 2024
1 parent 7a02818 commit c935c88
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/output/test_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,12 @@ def test_md_report_file_created_correctly():

os.remove("insights.md")

# print("expected")
# print(expected_file_contents)
# print("\n")
# print("file_contents")
# print(file_contents)

assert expected_file_contents in file_contents


Expand Down Expand Up @@ -304,6 +310,7 @@ def test_print_error_with_invalid_report_path():
output.run_checks(
checks, report_location, report_storing_type, storing_location_name
)
# assert value == False


def test_throw_errors_if_report_type_not_md_nor_json():
Expand Down Expand Up @@ -366,10 +373,12 @@ def test_throw_errors_if_report_type_not_md_nor_json():
report_location = "file"
report_storing_type = "not_md_nor_json"
storing_location_name = "invalid_path"

with pytest.raises(ValueError):
output.run_checks(
checks, report_location, report_storing_type, storing_location_name
)
checks, report_location, report_storing_type, storing_location_name
)
# assert value == False


def test_write_md_and_json_correctly(tmp_path):
Expand Down

0 comments on commit c935c88

Please sign in to comment.