From c8bcb7bd3705bb93f9f298d0b11a479e9636e035 Mon Sep 17 00:00:00 2001 From: David Schweizer Date: Fri, 22 Jan 2021 15:14:18 +0100 Subject: [PATCH] doc: fixed confusing statements in topotest marker doc Signed-off-by: David Schweizer --- doc/developer/topotests-markers.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/developer/topotests-markers.rst b/doc/developer/topotests-markers.rst index 02ffe3f777..893834ad36 100644 --- a/doc/developer/topotests-markers.rst +++ b/doc/developer/topotests-markers.rst @@ -40,8 +40,7 @@ incorrect markers will be rejected by reviewers. Registering markers ^^^^^^^^^^^^^^^^^^^ The Registration of new markers takes place in the file -``tests/topotests/pytest.ini`` and should be discussed with members of the TSC -beforehand. +``tests/topotests/pytest.ini``: .. code:: python3 @@ -64,9 +63,9 @@ Adding a single marker: .. code:: python3 import pytest - ... + # add after imports, before defining classes or functions: pytestmark = pytest.mark.bfdd ... @@ -79,9 +78,9 @@ Adding multiple markers: .. code:: python3 import pytest - ... + # add after imports, before defining classes or functions: pytestmark = [ pytest.mark.bgpd, pytest.mark.ospfd, -- 2.39.5