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)