@@ -22,19 +22,22 @@ class TestRequestForwarding:
22
22
@parametrize
23
23
def test_method_forward (self , client : Finch ) -> None :
24
24
request_forwarding = client .request_forwarding .forward (
25
- method = "string " ,
26
- route = "string " ,
25
+ method = "POST " ,
26
+ route = "/people/search " ,
27
27
)
28
28
assert_matches_type (RequestForwardingForwardResponse , request_forwarding , path = ["response" ])
29
29
30
30
@parametrize
31
31
def test_method_forward_with_all_params (self , client : Finch ) -> None :
32
32
request_forwarding = client .request_forwarding .forward (
33
- method = "string" ,
34
- route = "string" ,
35
- data = "string" ,
36
- headers = {},
37
- params = {},
33
+ method = "POST" ,
34
+ route = "/people/search" ,
35
+ data = None ,
36
+ headers = {"content-type" : "application/json" },
37
+ params = {
38
+ "showInactive" : True ,
39
+ "humanReadable" : True ,
40
+ },
38
41
)
39
42
assert_matches_type (RequestForwardingForwardResponse , request_forwarding , path = ["response" ])
40
43
@@ -47,18 +50,21 @@ class TestAsyncRequestForwarding:
47
50
@parametrize
48
51
async def test_method_forward (self , client : AsyncFinch ) -> None :
49
52
request_forwarding = await client .request_forwarding .forward (
50
- method = "string " ,
51
- route = "string " ,
53
+ method = "POST " ,
54
+ route = "/people/search " ,
52
55
)
53
56
assert_matches_type (RequestForwardingForwardResponse , request_forwarding , path = ["response" ])
54
57
55
58
@parametrize
56
59
async def test_method_forward_with_all_params (self , client : AsyncFinch ) -> None :
57
60
request_forwarding = await client .request_forwarding .forward (
58
- method = "string" ,
59
- route = "string" ,
60
- data = "string" ,
61
- headers = {},
62
- params = {},
61
+ method = "POST" ,
62
+ route = "/people/search" ,
63
+ data = None ,
64
+ headers = {"content-type" : "application/json" },
65
+ params = {
66
+ "showInactive" : True ,
67
+ "humanReadable" : True ,
68
+ },
63
69
)
64
70
assert_matches_type (RequestForwardingForwardResponse , request_forwarding , path = ["response" ])
0 commit comments