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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

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