summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2020-01-23 10:39:28 +0100
committerDaniel Hahler <git@thequod.de>2020-01-23 10:49:59 +0100
commit252eae5bc810cc4356bdc2d803846f2febda676f (patch)
tree8a8c00699245c4f06e559285a52b8d5f553d93a9 /testing
parentad02f6f8790df4252ba9af69aa76c58eb105a1db (diff)
downloadpytest-252eae5bc810cc4356bdc2d803846f2febda676f.tar.gz
tests: fix/harden test_record_property
`-rv` is not a recognized reportchar. Probably `-v` was meant, but is not necessary to check that there are no warnings. Followup to 2018cf12b (https://github.com/pytest-dev/pytest/pull/3360).
Diffstat (limited to 'testing')
-rw-r--r--testing/test_junitxml.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/test_junitxml.py b/testing/test_junitxml.py
index 0132db59d..f6d90852f 100644
--- a/testing/test_junitxml.py
+++ b/testing/test_junitxml.py
@@ -1061,13 +1061,14 @@ def test_record_property(testdir, run_and_parse):
record_property("foo", "<1");
"""
)
- result, dom = run_and_parse("-rwv")
+ result, dom = run_and_parse("-rw")
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(["*= 1 passed in *"])
def test_record_property_same_name(testdir, run_and_parse):