Merge pull request #3360 from RonnyPfannschmidt/xml_property_yay

record_property is no longer experimental
This commit is contained in:
Bruno Oliveira 2018-04-05 20:03:22 -03:00 committed by GitHub
commit ef34de960c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 10 deletions

View File

@ -245,11 +245,6 @@ def record_property(request):
def test_function(record_property):
record_property("example_key", 1)
"""
request.node.warn(
code='C3',
message='record_property is an experimental feature',
)
def append_property(name, value):
request.node.user_properties.append((name, value))
return append_property

2
changelog/3360.trivial Normal file
View File

@ -0,0 +1,2 @@
record_property is no longer experimental, removing the warnings was forgotten.

View File

@ -868,17 +868,13 @@ def test_record_property(testdir):
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',
'*record_property*experimental*',
])
def test_record_property_same_name(testdir):