Skip to content

Commit

Permalink
Merge pull request #4433 from 3lnc/doc_explicit_multimarker
Browse files Browse the repository at this point in the history
Adds note on multiple module marker usage
  • Loading branch information
nicoddemus authored Nov 21, 2018
2 parents 45c33c4 + ee4f8c9 commit 3eaa6d8
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 3eaa6d8

Please sign in to comment.