You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#test that _check_model_params raises ValueError when *args are present
218
+
# test that _check_model_params raises ValueError when *args are present
219
219
deftest_check_model_params_with_args_only():
220
220
"""Test that _check_model_params raises ValueError when *args are present."""
221
-
221
+
222
222
classModelWithArgsOnly:
223
223
def__init__(self, param1, *args):
224
224
pass
225
225
226
226
model_params= {"param1": 1}
227
227
228
-
withpytest.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
+
withpytest.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",
0 commit comments