Skip to content

Commit

Permalink
black linting and RegEx alteration
Browse files Browse the repository at this point in the history
  • Loading branch information
emprzy committed Nov 8, 2024
1 parent a6c3585 commit e2a87c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion flepimop/gempyor_pkg/tests/seir/test_model_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ def test_ModelInfo_init_tf_is_ahead_of_ti_fail(self):
config.read(user=False)
config.set_file(f"{DATA_DIR}/config_test.yml")
config["start_date"] = "2022-01-02"
with pytest.raises(ValueError, match=r"`tf`\s?\(time to finish\)\s?is less than or equal to\s?`ti`\s?\(time to start\)\."):
with pytest.raises(
ValueError,
match=r"`tf`\s?\(time to finish\)\s?is less than or equal to\s?`ti`\s?\(time to start\)\.",
):
s = ModelInfo(
config=config,
seir_modifiers_scenario=None,
Expand Down
2 changes: 1 addition & 1 deletion flepimop/gempyor_pkg/tests/seir/test_seir.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def test_constant_population_legacy_integration():


def test_constant_population_rk4jit_integration_fail():
with pytest.raises(ValueError, match=r".*with.*method.*integration.*"):
with pytest.raises(ValueError, match=r".*With.*method.*integration.*"):
config.set_file(f"{DATA_DIR}/config.yml")

first_sim_index = 1
Expand Down

0 comments on commit e2a87c3

Please sign in to comment.