From bf6ab9e2446370b917e095631b0761a79fe805e6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 8 Dec 2024 16:55:43 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_solara_viz.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/test_solara_viz.py b/tests/test_solara_viz.py index c22f8ce32cc..3b8d82fb7bc 100644 --- a/tests/test_solara_viz.py +++ b/tests/test_solara_viz.py @@ -215,15 +215,18 @@ def __init__(self, **kwargs): _check_model_params(ModelWithOnlyRequired.__init__, {}) - #test that _check_model_params raises ValueError when *args are present +# test that _check_model_params raises ValueError when *args are present def test_check_model_params_with_args_only(): """Test that _check_model_params raises ValueError when *args are present.""" - + class ModelWithArgsOnly: def __init__(self, param1, *args): pass model_params = {"param1": 1} - with pytest.raises(ValueError, match= "Mesa's visualization requires the use of keyword arguments to ensure the parameters are passed to Solara correctly. Please ensure all model parameters are of form param=value"): + with pytest.raises( + ValueError, + match="Mesa's visualization requires the use of keyword arguments to ensure the parameters are passed to Solara correctly. Please ensure all model parameters are of form param=value", + ): _check_model_params(ModelWithArgsOnly.__init__, model_params)