This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

at main 1.3 kB View raw
1# Adapted From: https://github.com/pytest-dev/pytest/issues/2269#issue-209278464 2import os.path as op 3import sys 4 5sys.path.remove(op.dirname(op.abspath(__file__))) 6 7from pytest import hookimpl 8from hypothesis import HealthCheck 9from hypothesis import settings 10 11# Adapted From: https://docs.pytest.org/en/stable/example/simple.html 12# And: https://github.com/pytest-dev/pytest/issues/5024#issuecomment-2078698395 13# And: https://pytest-with-eric.com/hooks/pytest-configure/ 14name = "oreo" 15kwargs = { 16 "deadline": None, 17 "derandomize": True, 18 "suppress_health_check": ( 19 HealthCheck.differing_executors, 20 HealthCheck.filter_too_much, 21 HealthCheck.function_scoped_fixture, 22 HealthCheck.too_slow, 23 ), 24} 25 26 27def pytest_addoption(parser): 28 parser.addoption("--more-tests", action="store", default=False, type=bool) 29 parser.addoption("--verbose-debug", action="store", default=False, type=bool) 30 31 32@hookimpl(tryfirst=True) 33def pytest_configure(config): 34 if config.getoption("--more-tests"): 35 kwargs["max_examples"] = 1000 36 if config.getoption("--verbose-debug"): 37 kwargs["verbosity"] = Verbosity.debug 38 settings.register_profile(name, **kwargs) 39 settings.load_profile("oreo")