Update conftest.py

This commit is contained in:
Charles McMarrow 2023-06-20 17:06:25 -05:00 committed by Pedro Algarvio
parent 115f3f6d6c
commit ffa67b257c

View file

@ -582,7 +582,9 @@ def pytest_runtest_setup(item):
for group in ("core_test", "slow_test", "flaky_jail")
)
if test_group_count > 1:
raise pytest.UsageError("Tests can only be in one test group. ('core_test', 'slow_test', 'flaky_jail')")
raise pytest.UsageError(
"Tests can only be in one test group. ('core_test', 'slow_test', 'flaky_jail')"
)
if item.get_closest_marker("core_test"):
if not item.config.getoption("--core-tests"):