@@ -131,7 +131,9 @@ def test_reset_with_no_args_leaves_manager_empty(self) -> None:
131131 assert client .list_agent_os_servers () == []
132132
133133 def test_reset_with_new_list_replaces_registrations (self ) -> None :
134- client = AskUiControllerClient (agent_os_servers = [_make_remote (computer_id = "old" )])
134+ client = AskUiControllerClient (
135+ agent_os_servers = [_make_remote (computer_id = "old" )]
136+ )
135137 new_server = _make_remote (address = "9.9.9.9:23000" , computer_id = "new" )
136138 client .reset_agent_os_servers ([new_server ])
137139 assert client .list_agent_os_servers () == [new_server ]
@@ -169,9 +171,13 @@ def test_temporary_select_restores_previous_even_on_exception(self) -> None:
169171 a = _make_local (computer_id = "a" )
170172 b = _make_remote (computer_id = "b" )
171173 client = AskUiControllerClient (agent_os_servers = [a , b ])
172- with pytest .raises (RuntimeError , match = "boom" ), client .temporary_select ("b" ):
174+ error_message = "boom"
175+ with (
176+ pytest .raises (RuntimeError , match = error_message ),
177+ client .temporary_select ("b" ),
178+ ):
173179 assert client .agent_os_server_manager .active is b
174- raise RuntimeError ("boom" )
180+ raise RuntimeError (error_message )
175181 assert client .agent_os_server_manager .active is a
176182
177183 def test_temporary_select_same_id_is_a_noop_around_yield (self ) -> None :
0 commit comments