def test_convert_info(self, prepared_converter):
    """Test conversion of basic API information."""
    # Call the method
    prepared_converter._convert_info()

    # Verify the results
    info = prepared_converter._openapi_spec["info"]
    assert info["title"] == "Google Calendar API"
    assert info["description"] == "Accesses the Google Calendar API"
    assert info["version"] == "v3"
    assert info["termsOfService"] == "https://developers.google.com/calendar/"

    # Check external docs
    external_docs = prepared_converter._openapi_spec["externalDocs"]
    assert external_docs["url"] == "https://developers.google.com/calendar/"
Test conversion of basic API information.
tests/unittests/tools/google_api_tool/test_googleapi_to_openapi_converter.py