Skip to content

Commit

Permalink
Make the version number tests stronger
Browse files Browse the repository at this point in the history
  • Loading branch information
zhe-slac committed Oct 21, 2024
1 parent 6083837 commit 61e81c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/badger/tests/test_routine_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def test_routine_page_init(qtbot):

def test_routine_generation(qtbot):
from badger.errors import BadgerRoutineError
from badger.utils import get_badger_version, get_xopt_version

# test if a simple routine can be created
from badger.gui.default.components.routine_page import BadgerRoutinePage
Expand Down Expand Up @@ -48,9 +49,9 @@ def test_routine_generation(qtbot):
assert routine.vocs.objectives == {"f": "MINIMIZE"}
assert routine.initial_points.empty

# test if badger and xopt version are embedded
assert routine.badger_version is not None
assert routine.xopt_version is not None
# Test if badger and xopt version match with the current version
assert routine.badger_version == get_badger_version()
assert routine.xopt_version == get_xopt_version()


def test_add_additional_vars(qtbot):
Expand Down

0 comments on commit 61e81c3

Please sign in to comment.