9
9
10
10
from cloudflare import Cloudflare , AsyncCloudflare
11
11
from tests .utils import assert_matches_type
12
- from cloudflare .types .dnssec import DNSSEC , DNSSECDeleteResponse
12
+ from cloudflare .types .dnssec import DNSSEC
13
13
14
14
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
15
15
@@ -22,7 +22,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
22
22
dnssec = client .dnssec .delete (
23
23
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
24
24
)
25
- assert_matches_type (Optional [ DNSSECDeleteResponse ] , dnssec , path = ["response" ])
25
+ assert_matches_type (str , dnssec , path = ["response" ])
26
26
27
27
@parametrize
28
28
def test_raw_response_delete (self , client : Cloudflare ) -> None :
@@ -33,7 +33,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
33
33
assert response .is_closed is True
34
34
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
35
35
dnssec = response .parse ()
36
- assert_matches_type (Optional [ DNSSECDeleteResponse ] , dnssec , path = ["response" ])
36
+ assert_matches_type (str , dnssec , path = ["response" ])
37
37
38
38
@parametrize
39
39
def test_streaming_response_delete (self , client : Cloudflare ) -> None :
@@ -44,7 +44,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
44
44
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
45
45
46
46
dnssec = response .parse ()
47
- assert_matches_type (Optional [ DNSSECDeleteResponse ] , dnssec , path = ["response" ])
47
+ assert_matches_type (str , dnssec , path = ["response" ])
48
48
49
49
assert cast (Any , response .is_closed ) is True
50
50
@@ -150,7 +150,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
150
150
dnssec = await async_client .dnssec .delete (
151
151
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
152
152
)
153
- assert_matches_type (Optional [ DNSSECDeleteResponse ] , dnssec , path = ["response" ])
153
+ assert_matches_type (str , dnssec , path = ["response" ])
154
154
155
155
@parametrize
156
156
async def test_raw_response_delete (self , async_client : AsyncCloudflare ) -> None :
@@ -161,7 +161,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
161
161
assert response .is_closed is True
162
162
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
163
163
dnssec = await response .parse ()
164
- assert_matches_type (Optional [ DNSSECDeleteResponse ] , dnssec , path = ["response" ])
164
+ assert_matches_type (str , dnssec , path = ["response" ])
165
165
166
166
@parametrize
167
167
async def test_streaming_response_delete (self , async_client : AsyncCloudflare ) -> None :
@@ -172,7 +172,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
172
172
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
173
173
174
174
dnssec = await response .parse ()
175
- assert_matches_type (Optional [ DNSSECDeleteResponse ] , dnssec , path = ["response" ])
175
+ assert_matches_type (str , dnssec , path = ["response" ])
176
176
177
177
assert cast (Any , response .is_closed ) is True
178
178
0 commit comments