From d74a214b6ef93aa0d72a7d6be7e5d679fb13e13a Mon Sep 17 00:00:00 2001 From: Emily Przykucki Date: Mon, 2 Dec 2024 11:19:05 -0500 Subject: [PATCH] Regex update in `test_statistic_class.py` --- flepimop/gempyor_pkg/tests/statistics/test_statistic_class.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flepimop/gempyor_pkg/tests/statistics/test_statistic_class.py b/flepimop/gempyor_pkg/tests/statistics/test_statistic_class.py index 5ec48ba76..31b752ded 100644 --- a/flepimop/gempyor_pkg/tests/statistics/test_statistic_class.py +++ b/flepimop/gempyor_pkg/tests/statistics/test_statistic_class.py @@ -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)