Have more control over search tests
@@ -19,25 +19,7 @@ except ImportError:
)
-def pytest_addoption(parser):
- parser.addoption(
- '--including-search',
- action='store_true',
- dest='searchtests',
- default=False, help='enable search tests',
- )
-
-
def pytest_configure(config):
- if not config.option.searchtests:
- # Include ``not search``` to parameters so search tests do not perform
- markexpr = getattr(config.option, 'markexpr')
- if markexpr:
- markexpr += ' and not search'
- else:
- markexpr = 'not search'
- setattr(config.option, 'markexpr', markexpr.strip())
-
for option, value in PYTEST_OPTIONS:
setattr(config.option, option, value)
