INNER CODE UNIT · Python
pytest_addoption
pygae/galgebra · conftest.py:4
def pytest_addoption(parser):
parser.addoption(
'--run-slow', action='store_true', default=False,
help='Run slow tests (marked with @pytest.mark.slow)'
)
def pytest_collection_modifyitems(config, items):
if not config.getoption('--run-slow'):
skip_slow = pytest.mark.skip(reason='slow test; pass --run-slow to run')
for item in items:
if 'slow' in item.keywords:
item.add_marker(skip_slow)