Enable EM in flake8 and ruff
This commit is contained in:
parent
652713e702
commit
ae2dc8db64
2 changed files with 201 additions and 99 deletions
|
|
@ -27,10 +27,12 @@ pytest_plugins = [
|
|||
# The TESTING environment variable is set
|
||||
# in pyproject.toml in pytest's config section.
|
||||
if not os.getenv("TESTING"):
|
||||
raise RuntimeError("Tests must be executed with TESTING set in the environment")
|
||||
msg = "Tests must be executed with TESTING set in the environment"
|
||||
raise RuntimeError(msg)
|
||||
|
||||
if not pkg_config.TESTING:
|
||||
raise RuntimeError("The testing configuration was not loaded")
|
||||
msg = "The testing configuration was not loaded"
|
||||
raise RuntimeError(msg)
|
||||
|
||||
|
||||
@pytest.fixture(scope="session", params=["all_at_once", "sequentially"])
|
||||
|
|
|
|||
|
|
@ -141,7 +141,8 @@ def make_replay_order(make_order, simulation):
|
|||
"""
|
||||
if scheduled:
|
||||
if order and order.ad_hoc is False:
|
||||
raise RuntimeError("`order` must be scheduled")
|
||||
msg = "`order` must be scheduled"
|
||||
raise RuntimeError(msg)
|
||||
|
||||
if order is None:
|
||||
order = make_order(scheduled=True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue