@@ -261,6 +261,14 @@ def test_path_params_add_file_to_graph(self, client: Writer) -> None:
261
261
262
262
@parametrize
263
263
def test_method_question_overload_1 (self , client : Writer ) -> None :
264
+ graph = client .graphs .question (
265
+ graph_ids = ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ],
266
+ question = "question" ,
267
+ )
268
+ assert_matches_type (Question , graph , path = ["response" ])
269
+
270
+ @parametrize
271
+ def test_method_question_with_all_params_overload_1 (self , client : Writer ) -> None :
264
272
graph = client .graphs .question (
265
273
graph_ids = ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ],
266
274
question = "question" ,
@@ -274,8 +282,6 @@ def test_raw_response_question_overload_1(self, client: Writer) -> None:
274
282
response = client .graphs .with_raw_response .question (
275
283
graph_ids = ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ],
276
284
question = "question" ,
277
- stream = False ,
278
- subqueries = True ,
279
285
)
280
286
281
287
assert response .is_closed is True
@@ -288,8 +294,6 @@ def test_streaming_response_question_overload_1(self, client: Writer) -> None:
288
294
with client .graphs .with_streaming_response .question (
289
295
graph_ids = ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ],
290
296
question = "question" ,
291
- stream = False ,
292
- subqueries = True ,
293
297
) as response :
294
298
assert not response .is_closed
295
299
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -301,6 +305,15 @@ def test_streaming_response_question_overload_1(self, client: Writer) -> None:
301
305
302
306
@parametrize
303
307
def test_method_question_overload_2 (self , client : Writer ) -> None :
308
+ graph_stream = client .graphs .question (
309
+ graph_ids = ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ],
310
+ question = "question" ,
311
+ stream = True ,
312
+ )
313
+ graph_stream .response .close ()
314
+
315
+ @parametrize
316
+ def test_method_question_with_all_params_overload_2 (self , client : Writer ) -> None :
304
317
graph_stream = client .graphs .question (
305
318
graph_ids = ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ],
306
319
question = "question" ,
@@ -315,7 +328,6 @@ def test_raw_response_question_overload_2(self, client: Writer) -> None:
315
328
graph_ids = ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ],
316
329
question = "question" ,
317
330
stream = True ,
318
- subqueries = True ,
319
331
)
320
332
321
333
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -328,7 +340,6 @@ def test_streaming_response_question_overload_2(self, client: Writer) -> None:
328
340
graph_ids = ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ],
329
341
question = "question" ,
330
342
stream = True ,
331
- subqueries = True ,
332
343
) as response :
333
344
assert not response .is_closed
334
345
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -625,6 +636,14 @@ async def test_path_params_add_file_to_graph(self, async_client: AsyncWriter) ->
625
636
626
637
@parametrize
627
638
async def test_method_question_overload_1 (self , async_client : AsyncWriter ) -> None :
639
+ graph = await async_client .graphs .question (
640
+ graph_ids = ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ],
641
+ question = "question" ,
642
+ )
643
+ assert_matches_type (Question , graph , path = ["response" ])
644
+
645
+ @parametrize
646
+ async def test_method_question_with_all_params_overload_1 (self , async_client : AsyncWriter ) -> None :
628
647
graph = await async_client .graphs .question (
629
648
graph_ids = ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ],
630
649
question = "question" ,
@@ -638,8 +657,6 @@ async def test_raw_response_question_overload_1(self, async_client: AsyncWriter)
638
657
response = await async_client .graphs .with_raw_response .question (
639
658
graph_ids = ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ],
640
659
question = "question" ,
641
- stream = False ,
642
- subqueries = True ,
643
660
)
644
661
645
662
assert response .is_closed is True
@@ -652,8 +669,6 @@ async def test_streaming_response_question_overload_1(self, async_client: AsyncW
652
669
async with async_client .graphs .with_streaming_response .question (
653
670
graph_ids = ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ],
654
671
question = "question" ,
655
- stream = False ,
656
- subqueries = True ,
657
672
) as response :
658
673
assert not response .is_closed
659
674
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -665,6 +680,15 @@ async def test_streaming_response_question_overload_1(self, async_client: AsyncW
665
680
666
681
@parametrize
667
682
async def test_method_question_overload_2 (self , async_client : AsyncWriter ) -> None :
683
+ graph_stream = await async_client .graphs .question (
684
+ graph_ids = ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ],
685
+ question = "question" ,
686
+ stream = True ,
687
+ )
688
+ await graph_stream .response .aclose ()
689
+
690
+ @parametrize
691
+ async def test_method_question_with_all_params_overload_2 (self , async_client : AsyncWriter ) -> None :
668
692
graph_stream = await async_client .graphs .question (
669
693
graph_ids = ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ],
670
694
question = "question" ,
@@ -679,7 +703,6 @@ async def test_raw_response_question_overload_2(self, async_client: AsyncWriter)
679
703
graph_ids = ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ],
680
704
question = "question" ,
681
705
stream = True ,
682
- subqueries = True ,
683
706
)
684
707
685
708
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -692,7 +715,6 @@ async def test_streaming_response_question_overload_2(self, async_client: AsyncW
692
715
graph_ids = ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ],
693
716
question = "question" ,
694
717
stream = True ,
695
- subqueries = True ,
696
718
) as response :
697
719
assert not response .is_closed
698
720
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
0 commit comments