From ee4f8c98a9c85773a5ed341c3d0b995ea8c60c68 Mon Sep 17 00:00:00 2001 From: Slam <3lnc.slam@gmail.com> Date: Wed, 21 Nov 2018 14:37:28 +0200 Subject: [PATCH] Adds note on multiple module marker usage --- doc/en/example/markers.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/en/example/markers.rst b/doc/en/example/markers.rst index cb6368a6443..e0682c834b5 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`: