Skip to content

Commit

Permalink
Assert the content of the error too
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewb1 committed Sep 16, 2023
1 parent 81355f6 commit c7c4954
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_pytest_cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,10 @@ def test_catch2_failure(exes):
failures, _ = facade.run_test(exes.get(f"catch2_error{suffix}"), "Error")
assert len(failures) == 1

fail1 = failures[0]
assert_catch2_failure(fail1.get_lines()[0], "Error: ", colors)
assert_catch2_failure(fail1.get_lines()[1], "a runtime error", colors)


class TestError:
def test_get_whitespace(self):
Expand Down

0 comments on commit c7c4954

Please sign in to comment.