MAINT Define custom markers for pytest
@@ -87,6 +87,11 @@ def pytest_collection_modifyitems(config, items):
def pytest_configure(config):
import sys
sys._is_pytest_session = True
+ # declare our custom markers to avoid PytestUnknownMarkWarning
+ config.addinivalue_line(
+ "markers",
+ "network: mark a test for execution if network available."
+ )
def pytest_unconfigure(config):
