From c8c2ed2926259baed4ee04ff61ad04de074024b1 Mon Sep 17 00:00:00 2001 From: "Jason K. Moore" Date: Tue, 6 Feb 2024 08:17:10 +0100 Subject: [PATCH] Change setup() -> setup_method() due to pytest deprecation. --- opty/tests/test_direct_collocation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opty/tests/test_direct_collocation.py b/opty/tests/test_direct_collocation.py index 09493f4..c33b602 100644 --- a/opty/tests/test_direct_collocation.py +++ b/opty/tests/test_direct_collocation.py @@ -48,7 +48,7 @@ def test_Problem(): class TestConstraintCollocator(): - def setup(self): + def setup_method(self): m, c, k, t = sym.symbols('m, c, k, t') x, v, f = [s(t) for s in sym.symbols('x, v, f', cls=sym.Function)] @@ -389,7 +389,7 @@ def test_generate_jacobian_function(self): class TestConstraintCollocatorUnknownTrajectories(): - def setup(self): + def setup_method(self): # constant parameters m, c, t = sym.symbols('m, c, t') @@ -769,7 +769,7 @@ def test_merge_fixed_free_trajectories(): class TestConstraintCollocatorInstanceConstraints(): - def setup(self): + def setup_method(self): I, m, g, d, t = sym.symbols('I, m, g, d, t') theta, omega, T = [f(t) for f in sym.symbols('theta, omega, T',