@@ -21,14 +21,14 @@ class TestDocuments:
2121 @parametrize
2222 def test_method_retrieve (self , client : Hyperspell ) -> None :
2323 document = client .documents .retrieve (
24- "document_id" ,
24+ 0 ,
2525 )
2626 assert_matches_type (Document , document , path = ["response" ])
2727
2828 @parametrize
2929 def test_raw_response_retrieve (self , client : Hyperspell ) -> None :
3030 response = client .documents .with_raw_response .retrieve (
31- "document_id" ,
31+ 0 ,
3232 )
3333
3434 assert response .is_closed is True
@@ -39,7 +39,7 @@ def test_raw_response_retrieve(self, client: Hyperspell) -> None:
3939 @parametrize
4040 def test_streaming_response_retrieve (self , client : Hyperspell ) -> None :
4141 with client .documents .with_streaming_response .retrieve (
42- "document_id" ,
42+ 0 ,
4343 ) as response :
4444 assert not response .is_closed
4545 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -49,27 +49,20 @@ def test_streaming_response_retrieve(self, client: Hyperspell) -> None:
4949
5050 assert cast (Any , response .is_closed ) is True
5151
52- @parametrize
53- def test_path_params_retrieve (self , client : Hyperspell ) -> None :
54- with pytest .raises (ValueError , match = r"Expected a non-empty value for `document_id` but received ''" ):
55- client .documents .with_raw_response .retrieve (
56- "" ,
57- )
58-
5952 @parametrize
6053 def test_method_list (self , client : Hyperspell ) -> None :
6154 document = client .documents .list (
62- collections = ["string" ],
55+ collections = [0 ],
6356 )
6457 assert_matches_type (DocumentListResponse , document , path = ["response" ])
6558
6659 @parametrize
6760 def test_method_list_with_all_params (self , client : Hyperspell ) -> None :
6861 document = client .documents .list (
69- collections = ["string" ],
62+ collections = [0 ],
7063 filter = {
7164 "chunk_type" : ["text" ],
72- "collections" : ["string" ],
65+ "collections" : [0 ],
7366 "document_type" : ["chat" ],
7467 "end_date" : parse_datetime ("2019-12-27T18:11:19.117Z" ),
7568 "provider" : ["slack" ],
@@ -83,7 +76,7 @@ def test_method_list_with_all_params(self, client: Hyperspell) -> None:
8376 @parametrize
8477 def test_raw_response_list (self , client : Hyperspell ) -> None :
8578 response = client .documents .with_raw_response .list (
86- collections = ["string" ],
79+ collections = [0 ],
8780 )
8881
8982 assert response .is_closed is True
@@ -94,7 +87,7 @@ def test_raw_response_list(self, client: Hyperspell) -> None:
9487 @parametrize
9588 def test_streaming_response_list (self , client : Hyperspell ) -> None :
9689 with client .documents .with_streaming_response .list (
97- collections = ["string" ],
90+ collections = [0 ],
9891 ) as response :
9992 assert not response .is_closed
10093 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -111,14 +104,14 @@ class TestAsyncDocuments:
111104 @parametrize
112105 async def test_method_retrieve (self , async_client : AsyncHyperspell ) -> None :
113106 document = await async_client .documents .retrieve (
114- "document_id" ,
107+ 0 ,
115108 )
116109 assert_matches_type (Document , document , path = ["response" ])
117110
118111 @parametrize
119112 async def test_raw_response_retrieve (self , async_client : AsyncHyperspell ) -> None :
120113 response = await async_client .documents .with_raw_response .retrieve (
121- "document_id" ,
114+ 0 ,
122115 )
123116
124117 assert response .is_closed is True
@@ -129,7 +122,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncHyperspell) -> Non
129122 @parametrize
130123 async def test_streaming_response_retrieve (self , async_client : AsyncHyperspell ) -> None :
131124 async with async_client .documents .with_streaming_response .retrieve (
132- "document_id" ,
125+ 0 ,
133126 ) as response :
134127 assert not response .is_closed
135128 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -139,27 +132,20 @@ async def test_streaming_response_retrieve(self, async_client: AsyncHyperspell)
139132
140133 assert cast (Any , response .is_closed ) is True
141134
142- @parametrize
143- async def test_path_params_retrieve (self , async_client : AsyncHyperspell ) -> None :
144- with pytest .raises (ValueError , match = r"Expected a non-empty value for `document_id` but received ''" ):
145- await async_client .documents .with_raw_response .retrieve (
146- "" ,
147- )
148-
149135 @parametrize
150136 async def test_method_list (self , async_client : AsyncHyperspell ) -> None :
151137 document = await async_client .documents .list (
152- collections = ["string" ],
138+ collections = [0 ],
153139 )
154140 assert_matches_type (DocumentListResponse , document , path = ["response" ])
155141
156142 @parametrize
157143 async def test_method_list_with_all_params (self , async_client : AsyncHyperspell ) -> None :
158144 document = await async_client .documents .list (
159- collections = ["string" ],
145+ collections = [0 ],
160146 filter = {
161147 "chunk_type" : ["text" ],
162- "collections" : ["string" ],
148+ "collections" : [0 ],
163149 "document_type" : ["chat" ],
164150 "end_date" : parse_datetime ("2019-12-27T18:11:19.117Z" ),
165151 "provider" : ["slack" ],
@@ -173,7 +159,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncHyperspell)
173159 @parametrize
174160 async def test_raw_response_list (self , async_client : AsyncHyperspell ) -> None :
175161 response = await async_client .documents .with_raw_response .list (
176- collections = ["string" ],
162+ collections = [0 ],
177163 )
178164
179165 assert response .is_closed is True
@@ -184,7 +170,7 @@ async def test_raw_response_list(self, async_client: AsyncHyperspell) -> None:
184170 @parametrize
185171 async def test_streaming_response_list (self , async_client : AsyncHyperspell ) -> None :
186172 async with async_client .documents .with_streaming_response .list (
187- collections = ["string" ],
173+ collections = [0 ],
188174 ) as response :
189175 assert not response .is_closed
190176 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
0 commit comments