@@ -110,13 +110,6 @@ def test_streaming_response_add(self, client: Hyperspell) -> None:
110110
111111 @parametrize
112112 def test_method_add_url (self , client : Hyperspell ) -> None :
113- document = client .documents .add_url (
114- collection = "collection" ,
115- )
116- assert_matches_type (DocumentStatus , document , path = ["response" ])
117-
118- @parametrize
119- def test_method_add_url_with_all_params (self , client : Hyperspell ) -> None :
120113 document = client .documents .add_url (
121114 collection = "collection" ,
122115 url = "url" ,
@@ -127,6 +120,7 @@ def test_method_add_url_with_all_params(self, client: Hyperspell) -> None:
127120 def test_raw_response_add_url (self , client : Hyperspell ) -> None :
128121 response = client .documents .with_raw_response .add_url (
129122 collection = "collection" ,
123+ url = "url" ,
130124 )
131125
132126 assert response .is_closed is True
@@ -138,6 +132,7 @@ def test_raw_response_add_url(self, client: Hyperspell) -> None:
138132 def test_streaming_response_add_url (self , client : Hyperspell ) -> None :
139133 with client .documents .with_streaming_response .add_url (
140134 collection = "collection" ,
135+ url = "url" ,
141136 ) as response :
142137 assert not response .is_closed
143138 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -303,13 +298,6 @@ async def test_streaming_response_add(self, async_client: AsyncHyperspell) -> No
303298
304299 @parametrize
305300 async def test_method_add_url (self , async_client : AsyncHyperspell ) -> None :
306- document = await async_client .documents .add_url (
307- collection = "collection" ,
308- )
309- assert_matches_type (DocumentStatus , document , path = ["response" ])
310-
311- @parametrize
312- async def test_method_add_url_with_all_params (self , async_client : AsyncHyperspell ) -> None :
313301 document = await async_client .documents .add_url (
314302 collection = "collection" ,
315303 url = "url" ,
@@ -320,6 +308,7 @@ async def test_method_add_url_with_all_params(self, async_client: AsyncHyperspel
320308 async def test_raw_response_add_url (self , async_client : AsyncHyperspell ) -> None :
321309 response = await async_client .documents .with_raw_response .add_url (
322310 collection = "collection" ,
311+ url = "url" ,
323312 )
324313
325314 assert response .is_closed is True
@@ -331,6 +320,7 @@ async def test_raw_response_add_url(self, async_client: AsyncHyperspell) -> None
331320 async def test_streaming_response_add_url (self , async_client : AsyncHyperspell ) -> None :
332321 async with async_client .documents .with_streaming_response .add_url (
333322 collection = "collection" ,
323+ url = "url" ,
334324 ) as response :
335325 assert not response .is_closed
336326 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
0 commit comments