Skip to content

Commit

Permalink
fix test_assert_verbosity_overrides in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
DetachHead committed Jul 2, 2024
1 parent eed3c21 commit 80e2f7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,9 @@ def test_maxfail(pr: PytestRobotTester):
pr.run_and_assert_result("--maxfail=2", failed=2, skipped=1)


def test_assert_verbosity_overrides(pr: PytestRobotTester):
def test_assert_verbosity_overrides(pr: PytestRobotTester, monkeypatch: MonkeyPatch):
# https://github.com/pytest-dev/pytest/issues/12009#issuecomment-2201710676
monkeypatch.delenv("CI", raising=False)
pr.run_and_assert_result("-o", "enable_assertion_pass_hook=true", failed=3)
xml = output_xml()
assert xml.xpath("//test[@name='test_default']//msg[contains(., 'Use -v to get more diff')]")
Expand Down

0 comments on commit 80e2f7b

Please sign in to comment.