Merge pull request #7911 from opensourcerouting/topotest-marker2

doc: fixed confusing examples in topotest marker doc
This commit is contained in:
Donald Sharp 2021-01-22 15:50:32 -05:00 committed by GitHub
commit 86fc0eb7d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,