Fix add_marker docs

This commit is contained in:
Bruno Oliveira
2018-06-13 14:57:10 -03:00
committed by GitHub
parent 791bb3502c
commit b5102d03a6

View File

@@ -176,9 +176,10 @@ class Node(object):
def add_marker(self, marker, append=True):
"""dynamically add a marker object to the node.
:type marker: str or pytest.mark.*
``append=True`` whether to append the marker,
if false insert at position 0
:type marker: ``str`` or ``pytest.mark.*`` object
:param marker:
``append=True`` whether to append the marker,
if ``False`` insert at position ``0``.
"""
from _pytest.mark import MarkDecorator, MARK_GEN