Skip to content

Commit

Permalink
fix the record_property test
Browse files Browse the repository at this point in the history
  • Loading branch information
RonnyPfannschmidt committed Apr 5, 2018
1 parent 7c0c91a commit 2018cf1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions testing/test_junitxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -868,16 +868,13 @@ def other(record_property):
def test_record(record_property, other):
record_property("foo", "<1");
""")
result, dom = runandparse(testdir, '-rw')
result, dom = runandparse(testdir, '-rwv')
node = dom.find_first_by_tag("testsuite")
tnode = node.find_first_by_tag("testcase")
psnode = tnode.find_first_by_tag('properties')
pnodes = psnode.find_by_tag('property')
pnodes[0].assert_attr(name="bar", value="1")
pnodes[1].assert_attr(name="foo", value="<1")
result.stdout.fnmatch_lines([
'test_record_property.py::test_record',
])


def test_record_property_same_name(testdir):
Expand Down

0 comments on commit 2018cf1

Please sign in to comment.