@@ -20,21 +20,21 @@ class TestObjects:
20
20
21
21
@parametrize
22
22
def test_method_list (self , client : Cloudflare ) -> None :
23
- object = client .durable_objects .namespaces .objects .list (
23
+ object_ = client .durable_objects .namespaces .objects .list (
24
24
"5fd1cafff895419c8bcc647fc64ab8f0" ,
25
25
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
26
26
)
27
- assert_matches_type (SyncCursorLimitPagination [DurableObject ], object , path = ["response" ])
27
+ assert_matches_type (SyncCursorLimitPagination [DurableObject ], object_ , path = ["response" ])
28
28
29
29
@parametrize
30
30
def test_method_list_with_all_params (self , client : Cloudflare ) -> None :
31
- object = client .durable_objects .namespaces .objects .list (
31
+ object_ = client .durable_objects .namespaces .objects .list (
32
32
"5fd1cafff895419c8bcc647fc64ab8f0" ,
33
33
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
34
34
cursor = "AAAAANuhDN7SjacTnSVsDu3WW1Lvst6dxJGTjRY5BhxPXdf6L6uTcpd_NVtjhn11OUYRsVEykxoUwF-JQU4dn6QylZSKTOJuG0indrdn_MlHpMRtsxgXjs-RPdHYIVm3odE_uvEQ_dTQGFm8oikZMohns34DLBgrQpc" ,
35
35
limit = 10 ,
36
36
)
37
- assert_matches_type (SyncCursorLimitPagination [DurableObject ], object , path = ["response" ])
37
+ assert_matches_type (SyncCursorLimitPagination [DurableObject ], object_ , path = ["response" ])
38
38
39
39
@parametrize
40
40
def test_raw_response_list (self , client : Cloudflare ) -> None :
@@ -45,8 +45,8 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
45
45
46
46
assert response .is_closed is True
47
47
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
48
- object = response .parse ()
49
- assert_matches_type (SyncCursorLimitPagination [DurableObject ], object , path = ["response" ])
48
+ object_ = response .parse ()
49
+ assert_matches_type (SyncCursorLimitPagination [DurableObject ], object_ , path = ["response" ])
50
50
51
51
@parametrize
52
52
def test_streaming_response_list (self , client : Cloudflare ) -> None :
@@ -57,8 +57,8 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
57
57
assert not response .is_closed
58
58
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
59
59
60
- object = response .parse ()
61
- assert_matches_type (SyncCursorLimitPagination [DurableObject ], object , path = ["response" ])
60
+ object_ = response .parse ()
61
+ assert_matches_type (SyncCursorLimitPagination [DurableObject ], object_ , path = ["response" ])
62
62
63
63
assert cast (Any , response .is_closed ) is True
64
64
@@ -82,21 +82,21 @@ class TestAsyncObjects:
82
82
83
83
@parametrize
84
84
async def test_method_list (self , async_client : AsyncCloudflare ) -> None :
85
- object = await async_client .durable_objects .namespaces .objects .list (
85
+ object_ = await async_client .durable_objects .namespaces .objects .list (
86
86
"5fd1cafff895419c8bcc647fc64ab8f0" ,
87
87
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
88
88
)
89
- assert_matches_type (AsyncCursorLimitPagination [DurableObject ], object , path = ["response" ])
89
+ assert_matches_type (AsyncCursorLimitPagination [DurableObject ], object_ , path = ["response" ])
90
90
91
91
@parametrize
92
92
async def test_method_list_with_all_params (self , async_client : AsyncCloudflare ) -> None :
93
- object = await async_client .durable_objects .namespaces .objects .list (
93
+ object_ = await async_client .durable_objects .namespaces .objects .list (
94
94
"5fd1cafff895419c8bcc647fc64ab8f0" ,
95
95
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
96
96
cursor = "AAAAANuhDN7SjacTnSVsDu3WW1Lvst6dxJGTjRY5BhxPXdf6L6uTcpd_NVtjhn11OUYRsVEykxoUwF-JQU4dn6QylZSKTOJuG0indrdn_MlHpMRtsxgXjs-RPdHYIVm3odE_uvEQ_dTQGFm8oikZMohns34DLBgrQpc" ,
97
97
limit = 10 ,
98
98
)
99
- assert_matches_type (AsyncCursorLimitPagination [DurableObject ], object , path = ["response" ])
99
+ assert_matches_type (AsyncCursorLimitPagination [DurableObject ], object_ , path = ["response" ])
100
100
101
101
@parametrize
102
102
async def test_raw_response_list (self , async_client : AsyncCloudflare ) -> None :
@@ -107,8 +107,8 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
107
107
108
108
assert response .is_closed is True
109
109
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
110
- object = await response .parse ()
111
- assert_matches_type (AsyncCursorLimitPagination [DurableObject ], object , path = ["response" ])
110
+ object_ = await response .parse ()
111
+ assert_matches_type (AsyncCursorLimitPagination [DurableObject ], object_ , path = ["response" ])
112
112
113
113
@parametrize
114
114
async def test_streaming_response_list (self , async_client : AsyncCloudflare ) -> None :
@@ -119,8 +119,8 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
119
119
assert not response .is_closed
120
120
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
121
121
122
- object = await response .parse ()
123
- assert_matches_type (AsyncCursorLimitPagination [DurableObject ], object , path = ["response" ])
122
+ object_ = await response .parse ()
123
+ assert_matches_type (AsyncCursorLimitPagination [DurableObject ], object_ , path = ["response" ])
124
124
125
125
assert cast (Any , response .is_closed ) is True
126
126
0 commit comments