Skip to content

Commit

Permalink
Merge pull request #116 from moorepants/pytest-deprecation
Browse files Browse the repository at this point in the history
Change setup() -> setup_method() due to pytest deprecation.
  • Loading branch information
moorepants committed Feb 6, 2024
2 parents 5e2e021 + c8c2ed2 commit 256b375
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions opty/tests/test_direct_collocation.py
Expand Up @@ -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)]
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 256b375

Please sign in to comment.