Skip to content

Commit

Permalink
update syntax in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Morris committed Oct 31, 2023
1 parent 15fa731 commit 2a91cce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 37 deletions.
4 changes: 2 additions & 2 deletions bloptools/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def agent(db):
DOF(name="x2", limits=(-8.0, 8.0)),
]

objectives = [Objective(key="himmelblau", minimize=True)]
objectives = [Objective(key="himmelblau", target="min")]

agent = Agent(
dofs=dofs,
Expand Down Expand Up @@ -88,7 +88,7 @@ def digestion(db, uid):
DOF(name="x2", limits=(-5.0, 5.0)),
]

objectives = [Objective(key="ST1", minimize=True), Objective(key="ST2", minimize=True)]
objectives = [Objective(key="ST1", target="min"), Objective(key="ST2", target="min")]

agent = Agent(
dofs=dofs,
Expand Down
2 changes: 1 addition & 1 deletion bloptools/tests/test_passive_dofs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_passive_dofs(RE, db):
]

objectives = [
Objective(key="himmelblau", minimize=True),
Objective(key="himmelblau", target="min"),
]

agent = Agent(
Expand Down
34 changes: 0 additions & 34 deletions bloptools/tests/test_targeting.py

This file was deleted.

0 comments on commit 2a91cce

Please sign in to comment.