From 1fd31bfadcfeb11da98cc395df039c5bbfb1eab4 Mon Sep 17 00:00:00 2001 From: Harmjan Date: Wed, 23 Feb 2022 13:58:48 +0100 Subject: [PATCH] undo config change --- ote_sdk/ote_sdk/tests/entities/test_task_environment.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ote_sdk/ote_sdk/tests/entities/test_task_environment.py b/ote_sdk/ote_sdk/tests/entities/test_task_environment.py index ebb0b0080a5..27a1b69d76e 100644 --- a/ote_sdk/ote_sdk/tests/entities/test_task_environment.py +++ b/ote_sdk/ote_sdk/tests/entities/test_task_environment.py @@ -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 ( @@ -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