Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ipuch committed Jul 13, 2023
1 parent c11c721 commit 4a947f8
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tests/test_all_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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__)

Expand All @@ -667,4 +669,3 @@ def test__contact_and_muscle_forces_example_excitation():
n_shooting=10,
min_bound=50,
)

0 comments on commit 4a947f8

Please sign in to comment.