Skip to content

Commit

Permalink
adapted test
Browse files Browse the repository at this point in the history
  • Loading branch information
burnout87 committed Apr 12, 2024
1 parent 9e221a5 commit 1787243
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def test_parameter_bounds():
def test_parameter_meta_data():
bounded_parameter = Float(value = 1., name='bounded', min_value=0.1, max_value=2)
choice_parameter = String(value = 'spam', name='choice', allowed_values=['spam', 'eggs', 'hams'])
long_choice_parameter = LongString(value='spam', name='choice', allowed_values=['spam', 'eggs', 'hams'])
long_choice_parameter = LongString(value='long_spam', name='choice')
bool_parameter = Boolean(value = True, name = 'bool')
assert bounded_parameter.reprJSONifiable() == [{'name': 'bounded',
'units': None, 'value': 1.0,
Expand All @@ -368,8 +368,7 @@ def test_parameter_meta_data():
'owl_uri': ["http://www.w3.org/2001/XMLSchema#str", "http://odahub.io/ontology#String"]}]
assert long_choice_parameter.reprJSONifiable() == [{'name': 'choice',
'units': 'str',
'value': 'spam',
'restrictions': {'allowed_values': ['spam', 'eggs', 'hams']},
'value': 'long_spam',
'owl_uri': ["http://www.w3.org/2001/XMLSchema#str",
"http://odahub.io/ontology#String",
"http://odahub.io/ontology#LongString"]}]
Expand Down

0 comments on commit 1787243

Please sign in to comment.