Skip to content

Commit bf6ab9e

Browse files
pre-commit-ci[bot]tpike3
authored andcommittedDec 9, 2024
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b05a3e7 commit bf6ab9e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed
 

‎tests/test_solara_viz.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -215,15 +215,18 @@ def __init__(self, **kwargs):
215215
_check_model_params(ModelWithOnlyRequired.__init__, {})
216216

217217

218-
#test that _check_model_params raises ValueError when *args are present
218+
# test that _check_model_params raises ValueError when *args are present
219219
def test_check_model_params_with_args_only():
220220
"""Test that _check_model_params raises ValueError when *args are present."""
221-
221+
222222
class ModelWithArgsOnly:
223223
def __init__(self, param1, *args):
224224
pass
225225

226226
model_params = {"param1": 1}
227227

228-
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"):
228+
with pytest.raises(
229+
ValueError,
230+
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",
231+
):
229232
_check_model_params(ModelWithArgsOnly.__init__, model_params)

0 commit comments

Comments
 (0)
Please sign in to comment.