Adds note on multiple module marker usage

This commit is contained in:
Slam 2018-11-21 14:37:28 +02:00
parent 45c33c4e05
commit ee4f8c98a9
1 changed files with 6 additions and 2 deletions

View File

@ -271,8 +271,12 @@ You can also set a module level marker::
import pytest
pytestmark = pytest.mark.webtest
in which case it will be applied to all functions and
methods defined in the module.
or multiple markers::
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`: