Skip to content

Commit

Permalink
Regex update in test_statistic_class.py
Browse files Browse the repository at this point in the history
  • Loading branch information
emprzy committed Dec 2, 2024
1 parent e7621d9 commit d74a214
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def test_unsupported_regularizations_value_error(
]
if reg_name not in ["forecast", "allsubpop"]
)
with pytest.raises(ValueError, match=r"^Unsupported regularization \[received:.*$"):
with pytest.raises(ValueError, match=rf"^Unsupported regularization \[received: '{mock_inputs.config.get('regularize', [])}'\]"):
mock_inputs.create_statistic_instance()

@pytest.mark.parametrize("factory", all_valid_factories)
Expand Down

0 comments on commit d74a214

Please sign in to comment.