Update MarkDecorator docs
The MarkInfo class no longer exists
This commit is contained in:
parent
13c4b7d212
commit
d66b6c8371
|
@ -179,9 +179,7 @@ class Mark:
|
||||||
@attr.s
|
@attr.s
|
||||||
class MarkDecorator:
|
class MarkDecorator:
|
||||||
""" A decorator for test functions and test classes. When applied
|
""" A decorator for test functions and test classes. When applied
|
||||||
it will create :class:`MarkInfo` objects which may be
|
it will create :class:`Mark` objects which are often created like this::
|
||||||
:ref:`retrieved by hooks as item keywords <excontrolskip>`.
|
|
||||||
MarkDecorator instances are often created like this::
|
|
||||||
|
|
||||||
mark1 = pytest.mark.NAME # simple MarkDecorator
|
mark1 = pytest.mark.NAME # simple MarkDecorator
|
||||||
mark2 = pytest.mark.NAME(name1=value) # parametrized MarkDecorator
|
mark2 = pytest.mark.NAME(name1=value) # parametrized MarkDecorator
|
||||||
|
|
Loading…
Reference in New Issue