Skip to content

Commit

Permalink
Adds note on multiple module marker usage
Browse files Browse the repository at this point in the history
  • Loading branch information
0bsearch committed Nov 21, 2018
1 parent 45c33c4 commit ee4f8c9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions doc/en/example/markers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`:

Expand Down

0 comments on commit ee4f8c9

Please sign in to comment.