Drop validation against multiple xmlfamilies

This was not backported to 4.6 before, so had to adapt the test slightly
to the old method of validation.
This commit is contained in:
Bruno Oliveira 2019-12-12 16:44:07 -03:00
parent f9ebe3c607
commit 8bfe434f75
1 changed files with 3 additions and 9 deletions

View File

@ -1411,19 +1411,15 @@ def test_logging_passing_tests_disabled_does_not_log_test_output(testdir):
assert len(node.find_by_tag("system-out")) == 0 assert len(node.find_by_tag("system-out")) == 0
@parametrize_families
@pytest.mark.parametrize("junit_logging", ["no", "system-out", "system-err"]) @pytest.mark.parametrize("junit_logging", ["no", "system-out", "system-err"])
def test_logging_passing_tests_disabled_logs_output_for_failing_test_issue5430( def test_logging_passing_tests_disabled_logs_output_for_failing_test_issue5430(
testdir, junit_logging, run_and_parse, xunit_family testdir, junit_logging
): ):
testdir.makeini( testdir.makeini(
""" """
[pytest] [pytest]
junit_log_passing_tests=False junit_log_passing_tests=False
junit_family={family} """
""".format(
family=xunit_family
)
) )
testdir.makepyfile( testdir.makepyfile(
""" """
@ -1436,9 +1432,7 @@ def test_logging_passing_tests_disabled_logs_output_for_failing_test_issue5430(
assert 0 assert 0
""" """
) )
result, dom = run_and_parse( result, dom = runandparse(testdir, "-o", "junit_logging=%s" % junit_logging)
"-o", "junit_logging=%s" % junit_logging, family=xunit_family
)
assert result.ret == 1 assert result.ret == 1
node = dom.find_first_by_tag("testcase") node = dom.find_first_by_tag("testcase")
if junit_logging == "system-out": if junit_logging == "system-out":