diff options
| author | David Schweizer <dschweizer@opensourcerouting.org> | 2021-01-21 17:06:58 +0100 |
|---|---|---|
| committer | David Schweizer <dschweizer@opensourcerouting.org> | 2021-01-21 17:06:58 +0100 |
| commit | 6bd548aa492f7b8fef287a741f42bf777660eacb (patch) | |
| tree | 32be89d623f9722487cdf8d0097613ab209a5944 /tests/topotests/example-test/test_template.py | |
| parent | 309638adb56fb52c24b7b52688a709bf00ba3fe7 (diff) | |
tests: pytest markers in topotest templates
Signed-off-by: David Schweizer <dschweizer@opensourcerouting.org>
Diffstat (limited to 'tests/topotests/example-test/test_template.py')
| -rw-r--r-- | tests/topotests/example-test/test_template.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/topotests/example-test/test_template.py b/tests/topotests/example-test/test_template.py index 4305e0199f..973303b830 100644 --- a/tests/topotests/example-test/test_template.py +++ b/tests/topotests/example-test/test_template.py @@ -44,6 +44,18 @@ from lib.topolog import logger from mininet.topo import Topo +#TODO: select markers based on daemons used during test +# pytest module level markers +""" +pytestmark = pytest.mark.bfdd # single marker +pytestmark = [ + pytest.mark.bgpd, + pytest.mark.ospfd, + pytest.mark.ospf6d +] # multiple markers +""" + + class TemplateTopo(Topo): "Test topology builder" |
