From 4a947f82035cdaba7153457d68f7881dd8973607 Mon Sep 17 00:00:00 2001 From: Ipuch Date: Thu, 13 Jul 2023 11:32:10 -0400 Subject: [PATCH] linting --- tests/test_all_examples.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/test_all_examples.py b/tests/test_all_examples.py index d55ce26a5..320b42dc3 100644 --- a/tests/test_all_examples.py +++ b/tests/test_all_examples.py @@ -230,10 +230,10 @@ def test__getting_started__example_multinode_objective(): ) with pytest.raises( - ValueError, - match="Valid values for setting the cx is 0, 1 or 2. If you reach this error message, you probably tried to " - "add more penalties than available in a multinode constraint. You can try to split the constraints " - "into more penalties or use assume_phase_dynamics=False.", + ValueError, + match="Valid values for setting the cx is 0, 1 or 2. If you reach this error message, you probably tried to " + "add more penalties than available in a multinode constraint. You can try to split the constraints " + "into more penalties or use assume_phase_dynamics=False.", ): ocp_module.prepare_ocp( biorbd_model_path=bioptim_folder + "/models/pendulum.bioMod", @@ -255,7 +255,7 @@ def test__getting_started__example_save_and_load(assume_phase_dynamics): if not assume_phase_dynamics: with pytest.raises( - RuntimeError, match="n_threads is greater than 1 is not compatible with assume_phase_dynamics=False" + RuntimeError, match="n_threads is greater than 1 is not compatible with assume_phase_dynamics=False" ): ocp_module.prepare_ocp( biorbd_model_path=bioptim_folder + "/models/pendulum.bioMod", @@ -657,7 +657,9 @@ def test__contact_and_muscle_forces_example(): def test__contact_and_muscle_forces_example_excitation(): - from bioptim.examples.muscle_driven_with_contact import contact_forces_inequality_constraint_muscle_excitations as ocp_module + from bioptim.examples.muscle_driven_with_contact import ( + contact_forces_inequality_constraint_muscle_excitations as ocp_module, + ) bioptim_folder = os.path.dirname(ocp_module.__file__) @@ -667,4 +669,3 @@ def test__contact_and_muscle_forces_example_excitation(): n_shooting=10, min_bound=50, ) -