junitxml: simplify the api used for testing junitml
This commit is contained in:
parent
80bcf8d624
commit
9128fec4c4
|
@ -612,7 +612,12 @@ def test_unicode_issue368(testdir):
|
||||||
|
|
||||||
def test_record_property(testdir):
|
def test_record_property(testdir):
|
||||||
testdir.makepyfile("""
|
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");
|
record_xml_property("foo", "<1");
|
||||||
""")
|
""")
|
||||||
result, dom = runandparse(testdir, '-rw')
|
result, dom = runandparse(testdir, '-rw')
|
||||||
|
|
Loading…
Reference in New Issue