Skip to content

Commit

Permalink
undo config change
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmjandevries committed Feb 23, 2022
1 parent c9bab22 commit 1fd31bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ote_sdk/ote_sdk/tests/entities/test_task_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,16 +436,16 @@ def test_set_hyper_parameters(self):
header = "Test header"
description = "Test description"
visible_in_ui = False
id_ = ID(123456789)
id = ID(123456789)

hyper_parameters = ConfigurableParameters(
header=header, description=description, visible_in_ui=visible_in_ui, id=id_
header=header, description=description, visible_in_ui=visible_in_ui, id=id
)
env.set_hyper_parameters(hyper_parameters=hyper_parameters)
assert env.get_hyper_parameters().header == header
assert env.get_hyper_parameters().description == description
assert env.get_hyper_parameters().visible_in_ui == visible_in_ui
assert env.get_hyper_parameters().id == id_
assert env.get_hyper_parameters().id == id

assert env.get_model_configuration().configurable_parameters.header == header
assert (
Expand All @@ -456,7 +456,7 @@ def test_set_hyper_parameters(self):
env.get_model_configuration().configurable_parameters.visible_in_ui
== visible_in_ui
)
assert env.get_model_configuration().configurable_parameters.id == id_
assert env.get_model_configuration().configurable_parameters.id == id

with pytest.raises(ValueError):
# ValueError: Unable to set hyper parameters, invalid input: 123
Expand Down

0 comments on commit 1fd31bf

Please sign in to comment.