99
1010from hyperspell import Hyperspell , AsyncHyperspell
1111from tests .utils import assert_matches_type
12- from hyperspell .types .integrations import GoogleCalendarListResponse
12+ from hyperspell .types .integrations import Calendar
1313
1414base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
1515
@@ -20,7 +20,7 @@ class TestGoogleCalendar:
2020 @parametrize
2121 def test_method_list (self , client : Hyperspell ) -> None :
2222 google_calendar = client .integrations .google_calendar .list ()
23- assert_matches_type (GoogleCalendarListResponse , google_calendar , path = ["response" ])
23+ assert_matches_type (Calendar , google_calendar , path = ["response" ])
2424
2525 @parametrize
2626 def test_raw_response_list (self , client : Hyperspell ) -> None :
@@ -29,7 +29,7 @@ def test_raw_response_list(self, client: Hyperspell) -> None:
2929 assert response .is_closed is True
3030 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
3131 google_calendar = response .parse ()
32- assert_matches_type (GoogleCalendarListResponse , google_calendar , path = ["response" ])
32+ assert_matches_type (Calendar , google_calendar , path = ["response" ])
3333
3434 @parametrize
3535 def test_streaming_response_list (self , client : Hyperspell ) -> None :
@@ -38,7 +38,7 @@ def test_streaming_response_list(self, client: Hyperspell) -> None:
3838 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
3939
4040 google_calendar = response .parse ()
41- assert_matches_type (GoogleCalendarListResponse , google_calendar , path = ["response" ])
41+ assert_matches_type (Calendar , google_calendar , path = ["response" ])
4242
4343 assert cast (Any , response .is_closed ) is True
4444
@@ -49,7 +49,7 @@ class TestAsyncGoogleCalendar:
4949 @parametrize
5050 async def test_method_list (self , async_client : AsyncHyperspell ) -> None :
5151 google_calendar = await async_client .integrations .google_calendar .list ()
52- assert_matches_type (GoogleCalendarListResponse , google_calendar , path = ["response" ])
52+ assert_matches_type (Calendar , google_calendar , path = ["response" ])
5353
5454 @parametrize
5555 async def test_raw_response_list (self , async_client : AsyncHyperspell ) -> None :
@@ -58,7 +58,7 @@ async def test_raw_response_list(self, async_client: AsyncHyperspell) -> None:
5858 assert response .is_closed is True
5959 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
6060 google_calendar = await response .parse ()
61- assert_matches_type (GoogleCalendarListResponse , google_calendar , path = ["response" ])
61+ assert_matches_type (Calendar , google_calendar , path = ["response" ])
6262
6363 @parametrize
6464 async def test_streaming_response_list (self , async_client : AsyncHyperspell ) -> None :
@@ -67,6 +67,6 @@ async def test_streaming_response_list(self, async_client: AsyncHyperspell) -> N
6767 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
6868
6969 google_calendar = await response .parse ()
70- assert_matches_type (GoogleCalendarListResponse , google_calendar , path = ["response" ])
70+ assert_matches_type (Calendar , google_calendar , path = ["response" ])
7171
7272 assert cast (Any , response .is_closed ) is True
0 commit comments