-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
test_assert_verbosity_overrides
test in ci because pytest behav…
…es differently in the ci (EPIC!!!!!!!)
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -962,10 +962,10 @@ def test_maxfail(pr: PytestRobotTester): | |
|
||
|
||
def test_assert_verbosity_overrides(pr: PytestRobotTester): | ||
pr.run_and_assert_result("-o", "enable_assertion_pass_hook=true", failed=3) | ||
pr.run_and_assert_result("-vv", "-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')]") | ||
assert xml.xpath("//test[@name='test_verbose']//msg[contains(., 'Full diff:')]") | ||
assert xml.xpath("//test[@name='test_default']//msg[contains(., 'Full diff:')]") | ||
assert xml.xpath( | ||
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.8, ubuntu-latest, from lockfile, from lockfile)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.8, ubuntu-latest, from lockfile, from lockfile)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.8, ubuntu-latest, 6.1.1, 8.0)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.8, ubuntu-latest, 6.1.1, 8.0)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.12, ubuntu-latest, from lockfile, from lockfile)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.12, ubuntu-latest, from lockfile, from lockfile)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.12, ubuntu-latest, 6.1.1, from lockfile)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.12, ubuntu-latest, 6.1.1, from lockfile)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.12, ubuntu-latest, 6.1.1, 8.0)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.12, ubuntu-latest, 6.1.1, 8.0)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.12, ubuntu-latest, from lockfile, 8.0)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.12, ubuntu-latest, from lockfile, 8.0)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.12, macos-12, 6.1.1, 8.0)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.12, macos-12, 6.1.1, 8.0)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.12, macos-12, from lockfile, from lockfile)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.12, macos-12, from lockfile, from lockfile)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.12, macos-12, 6.1.1, from lockfile)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.12, macos-12, 6.1.1, from lockfile)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.8, ubuntu-latest, from lockfile, 8.0)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.8, ubuntu-latest, from lockfile, 8.0)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.12, macos-12, from lockfile, 8.0)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.12, macos-12, from lockfile, 8.0)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.8, macos-12, 6.1.1, 8.0)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.8, macos-12, 6.1.1, 8.0)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.8, macos-12, 6.1.1, from lockfile)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.8, macos-12, 6.1.1, from lockfile)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.8, macos-12, from lockfile, from lockfile)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.8, macos-12, from lockfile, from lockfile)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.8, ubuntu-latest, 6.1.1, from lockfile)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.8, ubuntu-latest, 6.1.1, from lockfile)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.8, macos-12, from lockfile, 8.0)
Check failure on line 968 in tests/test_python.py GitHub Actions / test (3.8, macos-12, from lockfile, 8.0)
|
||
"//test[@name='test_set_back_to_default']//msg[contains(., 'Use -v to get more diff')]" | ||
"//test[@name='test_less_verbose']//msg[contains(., 'Use -v to get more diff')]" | ||
) | ||
assert xml.xpath("//test[@name='test_set_back_to_default']//msg[contains(., 'Full diff:')]") |