summaryrefslogtreecommitdiff
path: root/tests/topotests/example-test/test_template.py
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2021-01-22 08:23:02 -0500
committerGitHub <noreply@github.com>2021-01-22 08:23:02 -0500
commitf95224c17011227f11346ea96c53c0746b35e4cc (patch)
tree4d19a22553e98c5b1794255a6df4bcdc13bfb8dd /tests/topotests/example-test/test_template.py
parentfb06b39ca81fb850ec9e0a7e2c066dece8cdeb25 (diff)
parent6bd548aa492f7b8fef287a741f42bf777660eacb (diff)
Merge pull request #7902 from opensourcerouting/topotest-marker
tests: Standardized Topotest PyTest Markers
Diffstat (limited to 'tests/topotests/example-test/test_template.py')
-rw-r--r--tests/topotests/example-test/test_template.py12
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"