mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 10:49:24 +00:00
Merge pull request #7911 from opensourcerouting/topotest-marker2
doc: fixed confusing examples in topotest marker doc
This commit is contained in:
commit
86fc0eb7d8
@ -40,8 +40,7 @@ incorrect markers will be rejected by reviewers.
|
|||||||
Registering markers
|
Registering markers
|
||||||
^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^
|
||||||
The Registration of new markers takes place in the file
|
The Registration of new markers takes place in the file
|
||||||
``tests/topotests/pytest.ini`` and should be discussed with members of the TSC
|
``tests/topotests/pytest.ini``:
|
||||||
beforehand.
|
|
||||||
|
|
||||||
.. code:: python3
|
.. code:: python3
|
||||||
|
|
||||||
@ -64,9 +63,9 @@ Adding a single marker:
|
|||||||
.. code:: python3
|
.. code:: python3
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
|
# add after imports, before defining classes or functions:
|
||||||
pytestmark = pytest.mark.bfdd
|
pytestmark = pytest.mark.bfdd
|
||||||
|
|
||||||
...
|
...
|
||||||
@ -79,9 +78,9 @@ Adding multiple markers:
|
|||||||
.. code:: python3
|
.. code:: python3
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
|
# add after imports, before defining classes or functions:
|
||||||
pytestmark = [
|
pytestmark = [
|
||||||
pytest.mark.bgpd,
|
pytest.mark.bgpd,
|
||||||
pytest.mark.ospfd,
|
pytest.mark.ospfd,
|
||||||
|
Loading…
Reference in New Issue
Block a user