pytest: Fix warning of unregistered marker

In Fedora 34, the pytest(6.2.2) will complain about
`PytestUnknownMarkWarning`.

Fixed the manual marker register code.

Signed-off-by: Gris Ge <fge@redhat.com>
This commit is contained in:
Gris Ge 2021-05-19 07:41:17 +08:00 committed by Fernando Fernández Mancera
parent 9df988cb9d
commit 3e5aa19f55

View File

@ -39,7 +39,9 @@ nmstate: {nmstate_version}
def pytest_configure(config):
config.addinivalue_line("markers", "slow tier1 tier2")
config.addinivalue_line("markers", "slow: mark time consuming test")
config.addinivalue_line("markers", "tier2")
config.addinivalue_line("markers", "tier1")
def pytest_addoption(parser):