From c4f72e4d133e8eec407e7c3f8efaae589ce9e5e0 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 9 Jun 2018 12:40:39 -0300 Subject: [PATCH] Apply code review changes --- doc/en/mark.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/en/mark.rst b/doc/en/mark.rst index 4f4242490..e47b8c3fb 100644 --- a/doc/en/mark.rst +++ b/doc/en/mark.rst @@ -29,7 +29,8 @@ which also serve as documentation. Raising errors on unknown marks: --strict ----------------------------------------- -The ``--strict`` command-line flag can be used to raise errors when marks not registered in the ``pytest.ini`` file. +When the ``--strict`` command-line flag is passed, any marks not registered in the ``pytest.ini`` file will trigger an error. + Marks can be registered like this: .. code-block:: ini @@ -39,7 +40,7 @@ Marks can be registered like this: slow serial -This can be used to prevent users mistyping mark names by accident. Test suites that want to enforce that this +This can be used to prevent users mistyping mark names by accident. Test suites that want to enforce this should add ``--strict`` to ``addopts``: .. code-block:: ini