diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2018-11-21 20:51:29 -0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-21 20:51:29 -0200 |
commit | 3eaa6d883542147b376cb43c4e9e95a9dd8d7d40 (patch) | |
tree | 1506c224a27419add3556900d7942ec0812ccd2d | |
parent | 45c33c4e05a615eed83e66a6486a45645af6877e (diff) | |
parent | ee4f8c98a9c85773a5ed341c3d0b995ea8c60c68 (diff) | |
download | pytest-3eaa6d883542147b376cb43c4e9e95a9dd8d7d40.tar.gz |
Merge pull request #4433 from 3lnc/doc_explicit_multimarker
Adds note on multiple module marker usage
-rw-r--r-- | doc/en/example/markers.rst | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/en/example/markers.rst b/doc/en/example/markers.rst index cb6368a64..e0682c834 100644 --- a/doc/en/example/markers.rst +++ b/doc/en/example/markers.rst @@ -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`: |