9
9
10
10
from cloudflare import Cloudflare , AsyncCloudflare
11
11
from tests .utils import assert_matches_type
12
- from cloudflare .types .intel import IntelASN
12
+ from cloudflare .types .shared import ASN
13
13
14
14
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
15
15
@@ -24,7 +24,7 @@ def test_method_get(self, client: Cloudflare) -> None:
24
24
0 ,
25
25
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
26
26
)
27
- assert_matches_type (IntelASN , asn , path = ["response" ])
27
+ assert_matches_type (ASN , asn , path = ["response" ])
28
28
29
29
@pytest .mark .skip ()
30
30
@parametrize
@@ -37,7 +37,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
37
37
assert response .is_closed is True
38
38
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
39
39
asn = response .parse ()
40
- assert_matches_type (IntelASN , asn , path = ["response" ])
40
+ assert_matches_type (ASN , asn , path = ["response" ])
41
41
42
42
@pytest .mark .skip ()
43
43
@parametrize
@@ -50,7 +50,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
50
50
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
51
51
52
52
asn = response .parse ()
53
- assert_matches_type (IntelASN , asn , path = ["response" ])
53
+ assert_matches_type (ASN , asn , path = ["response" ])
54
54
55
55
assert cast (Any , response .is_closed ) is True
56
56
@@ -74,7 +74,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
74
74
0 ,
75
75
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
76
76
)
77
- assert_matches_type (IntelASN , asn , path = ["response" ])
77
+ assert_matches_type (ASN , asn , path = ["response" ])
78
78
79
79
@pytest .mark .skip ()
80
80
@parametrize
@@ -87,7 +87,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
87
87
assert response .is_closed is True
88
88
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
89
89
asn = await response .parse ()
90
- assert_matches_type (IntelASN , asn , path = ["response" ])
90
+ assert_matches_type (ASN , asn , path = ["response" ])
91
91
92
92
@pytest .mark .skip ()
93
93
@parametrize
@@ -100,7 +100,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
100
100
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
101
101
102
102
asn = await response .parse ()
103
- assert_matches_type (IntelASN , asn , path = ["response" ])
103
+ assert_matches_type (ASN , asn , path = ["response" ])
104
104
105
105
assert cast (Any , response .is_closed ) is True
106
106
0 commit comments