Move user_properties to the end of parameter list for backward compatibility
This commit is contained in:
parent
d838193d2d
commit
567b1ea7a1
|
@ -317,8 +317,7 @@ def pytest_runtest_makereport(item, call):
|
||||||
sections.append(("Captured %s %s" % (key, rwhen), content))
|
sections.append(("Captured %s %s" % (key, rwhen), content))
|
||||||
return TestReport(item.nodeid, item.location,
|
return TestReport(item.nodeid, item.location,
|
||||||
keywords, outcome, longrepr, when,
|
keywords, outcome, longrepr, when,
|
||||||
item.user_properties,
|
sections, duration, user_properties=item.user_properties)
|
||||||
sections, duration)
|
|
||||||
|
|
||||||
|
|
||||||
class TestReport(BaseReport):
|
class TestReport(BaseReport):
|
||||||
|
@ -327,8 +326,7 @@ class TestReport(BaseReport):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, nodeid, location, keywords, outcome,
|
def __init__(self, nodeid, location, keywords, outcome,
|
||||||
longrepr, when, user_properties,
|
longrepr, when, sections=(), duration=0, user_properties=(), **extra):
|
||||||
sections=(), duration=0, **extra):
|
|
||||||
#: normalized collection node id
|
#: normalized collection node id
|
||||||
self.nodeid = nodeid
|
self.nodeid = nodeid
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue