From 9128fec4c49b9cf53528fac3a1e2eabe2b011227 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Sat, 10 Oct 2015 08:19:41 +0200 Subject: [PATCH] junitxml: simplify the api used for testing junitml --- testing/test_junitxml.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/testing/test_junitxml.py b/testing/test_junitxml.py index dc19c29bd..55668f5ca 100644 --- a/testing/test_junitxml.py +++ b/testing/test_junitxml.py @@ -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')