rework Node.add_marker parameter list and docstring

This commit is contained in:
Ronny Pfannschmidt
2018-06-12 17:50:08 +02:00
parent 9a7c3a65f4
commit b0ec442d24
2 changed files with 8 additions and 6 deletions
+3 -5
View File
@@ -173,12 +173,10 @@ class Node(object):
chain.reverse()
return chain
def add_marker(self, marker, append=True):
""" dynamically add a marker object to the node.
def add_marker(self, marker):
"""dynamically add a marker object to the node.
``marker`` can be a string or pytest.mark.* instance.
``append=True`` whether to append the marker,
if false insert at position 0
:type marker: str or pytest.mark.*
"""
from _pytest.mark import MarkDecorator, MARK_GEN