Merge pull request #4433 from 3lnc/doc_explicit_multimarker
Adds note on multiple module marker usage
This commit is contained in:
commit
3eaa6d8835
|
@ -271,8 +271,12 @@ You can also set a module level marker::
|
||||||
import pytest
|
import pytest
|
||||||
pytestmark = pytest.mark.webtest
|
pytestmark = pytest.mark.webtest
|
||||||
|
|
||||||
in which case it will be applied to all functions and
|
or multiple markers::
|
||||||
methods defined in the module.
|
|
||||||
|
pytestmark = [pytest.mark.webtest, pytest.mark.slowtest]
|
||||||
|
|
||||||
|
in which case markers will be applied (in left-to-right order) to
|
||||||
|
all functions and methods defined in the module.
|
||||||
|
|
||||||
.. _`marking individual tests when using parametrize`:
|
.. _`marking individual tests when using parametrize`:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue