junitxml: simplify the api used for testing junitml

This commit is contained in:
Ronny Pfannschmidt 2015-10-10 08:19:41 +02:00
parent 80bcf8d624
commit 9128fec4c4
1 changed files with 6 additions and 1 deletions

View File

@ -612,7 +612,12 @@ def test_unicode_issue368(testdir):
def test_record_property(testdir):
testdir.makepyfile("""
def test_record(record_xml_property):
import pytest
@pytest.fixture
def other(record_xml_property):
record_xml_property("bar", 1)
def test_record(record_xml_property, other):
record_xml_property("foo", "<1");
""")
result, dom = runandparse(testdir, '-rw')