@@ -54,6 +54,7 @@ def invalid_response(*args, **kwargs):
5454 ("get" , "get_launch_ui_id" , []),
5555 ("get" , "get_launch_ui_url" , []),
5656 ("get" , "get_project_settings" , []),
57+ ("get" , "get_api_info" , []),
5758 ("post" , "start_launch" , ["Test Launch" , timestamp ()]),
5859 ("post" , "start_test_item" , ["Test Item" , timestamp (), "STEP" ]),
5960 ("put" , "update_test_item" , ["test_item_id" ]),
@@ -297,6 +298,7 @@ def test_attribute_sanitization_binary_and_number_limit(rp_client: RPClient):
297298 ("update_test_item" , "put" , ["test_item_uuid" ]),
298299 ("get_launch_info" , "get" , []),
299300 ("get_project_settings" , "get" , []),
301+ ("get_api_info" , "get" , []),
300302 ("get_item_id_by_uuid" , "get" , ["test_item_uuid" ]),
301303 ("log" , "post" , [timestamp (), "Test Message" ]),
302304 ],
@@ -344,6 +346,17 @@ def test_logs_flush_on_close(rp_client: RPClient):
344346 session .close .assert_called_once ()
345347
346348
349+ def test_get_api_info_url (rp_client : RPClient ):
350+ # noinspection PyTypeChecker
351+ session : mock .Mock = rp_client .session
352+
353+ rp_client .get_api_info ()
354+
355+ session .get .assert_called_once ()
356+ request_args = session .get .call_args_list [0 ][0 ]
357+ assert request_args [0 ] == "http://endpoint/api/info"
358+
359+
347360def test_oauth_authentication_parameters ():
348361 """Test that OAuth 2.0 authentication parameters work correctly."""
349362 client = RPClient (
0 commit comments