|
9 | 9 |
|
10 | 10 | from cloudflare import Cloudflare, AsyncCloudflare |
11 | 11 | from tests.utils import assert_matches_type |
12 | | -from cloudflare.types.organizations.organization_profile_get_params import Result |
| 12 | +from cloudflare.types.organizations.organization_profile_get_params import ( # pyright: ignore[reportMissingImports] |
| 13 | + Result, # pyright: ignore[reportUnknownVariableType] |
| 14 | +) |
13 | 15 |
|
14 | 16 | base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") |
15 | 17 |
|
@@ -77,32 +79,32 @@ def test_path_params_update(self, client: Cloudflare) -> None: |
77 | 79 |
|
78 | 80 | @parametrize |
79 | 81 | def test_method_get(self, client: Cloudflare) -> None: |
80 | | - organization_profile = client.organizations.organization_profile.get( |
| 82 | + organization_profile = client.organizations.organization_profile.get( # pyright: ignore[reportUnknownVariableType, reportUnknownMemberType] |
81 | 83 | "a7b9c3d2e8f4g1h5i6j0k9l2m3n7o4p8", |
82 | 84 | ) |
83 | | - assert_matches_type(Result, organization_profile, path=["response"]) |
| 85 | + assert_matches_type(Result, organization_profile, path=["response"]) # pyright: ignore[reportUnknownArgumentType] |
84 | 86 |
|
85 | 87 | @parametrize |
86 | 88 | def test_raw_response_get(self, client: Cloudflare) -> None: |
87 | | - response = client.organizations.organization_profile.with_raw_response.get( |
| 89 | + response = client.organizations.organization_profile.with_raw_response.get( # pyright: ignore[reportUnknownVariableType] |
88 | 90 | "a7b9c3d2e8f4g1h5i6j0k9l2m3n7o4p8", |
89 | 91 | ) |
90 | 92 |
|
91 | 93 | assert response.is_closed is True |
92 | 94 | assert response.http_request.headers.get("X-Stainless-Lang") == "python" |
93 | | - organization_profile = response.parse() |
94 | | - assert_matches_type(Result, organization_profile, path=["response"]) |
| 95 | + organization_profile = response.parse() # pyright: ignore[reportUnknownVariableType] |
| 96 | + assert_matches_type(Result, organization_profile, path=["response"]) # pyright: ignore[reportUnknownArgumentType] |
95 | 97 |
|
96 | 98 | @parametrize |
97 | 99 | def test_streaming_response_get(self, client: Cloudflare) -> None: |
98 | | - with client.organizations.organization_profile.with_streaming_response.get( |
| 100 | + with client.organizations.organization_profile.with_streaming_response.get( # pyright: ignore[reportUnknownVariableType] |
99 | 101 | "a7b9c3d2e8f4g1h5i6j0k9l2m3n7o4p8", |
100 | | - ) as response: |
| 102 | + ) as response: # pyright: ignore[reportUnknownVariableType] |
101 | 103 | assert not response.is_closed |
102 | 104 | assert response.http_request.headers.get("X-Stainless-Lang") == "python" |
103 | 105 |
|
104 | | - organization_profile = response.parse() |
105 | | - assert_matches_type(Result, organization_profile, path=["response"]) |
| 106 | + organization_profile = response.parse() # pyright: ignore[reportUnknownVariableType] |
| 107 | + assert_matches_type(Result, organization_profile, path=["response"]) # pyright: ignore[reportUnknownArgumentType] |
106 | 108 |
|
107 | 109 | assert cast(Any, response.is_closed) is True |
108 | 110 |
|
@@ -179,32 +181,32 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None: |
179 | 181 |
|
180 | 182 | @parametrize |
181 | 183 | async def test_method_get(self, async_client: AsyncCloudflare) -> None: |
182 | | - organization_profile = await async_client.organizations.organization_profile.get( |
| 184 | + organization_profile = await async_client.organizations.organization_profile.get( # pyright: ignore[reportUnknownVariableType, reportUnknownMemberType] |
183 | 185 | "a7b9c3d2e8f4g1h5i6j0k9l2m3n7o4p8", |
184 | 186 | ) |
185 | | - assert_matches_type(Result, organization_profile, path=["response"]) |
| 187 | + assert_matches_type(Result, organization_profile, path=["response"]) # pyright: ignore[reportUnknownArgumentType] |
186 | 188 |
|
187 | 189 | @parametrize |
188 | 190 | async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None: |
189 | | - response = await async_client.organizations.organization_profile.with_raw_response.get( |
| 191 | + response = await async_client.organizations.organization_profile.with_raw_response.get( # pyright: ignore[reportUnknownVariableType] |
190 | 192 | "a7b9c3d2e8f4g1h5i6j0k9l2m3n7o4p8", |
191 | 193 | ) |
192 | 194 |
|
193 | 195 | assert response.is_closed is True |
194 | 196 | assert response.http_request.headers.get("X-Stainless-Lang") == "python" |
195 | | - organization_profile = await response.parse() |
196 | | - assert_matches_type(Result, organization_profile, path=["response"]) |
| 197 | + organization_profile = await response.parse() # pyright: ignore[reportUnknownVariableType] |
| 198 | + assert_matches_type(Result, organization_profile, path=["response"]) # pyright: ignore[reportUnknownArgumentType] |
197 | 199 |
|
198 | 200 | @parametrize |
199 | 201 | async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None: |
200 | | - async with async_client.organizations.organization_profile.with_streaming_response.get( |
| 202 | + async with async_client.organizations.organization_profile.with_streaming_response.get( # pyright: ignore[reportUnknownVariableType] |
201 | 203 | "a7b9c3d2e8f4g1h5i6j0k9l2m3n7o4p8", |
202 | | - ) as response: |
| 204 | + ) as response: # pyright: ignore[reportUnknownVariableType] |
203 | 205 | assert not response.is_closed |
204 | 206 | assert response.http_request.headers.get("X-Stainless-Lang") == "python" |
205 | 207 |
|
206 | | - organization_profile = await response.parse() |
207 | | - assert_matches_type(Result, organization_profile, path=["response"]) |
| 208 | + organization_profile = await response.parse() # pyright: ignore[reportUnknownVariableType] |
| 209 | + assert_matches_type(Result, organization_profile, path=["response"]) # pyright: ignore[reportUnknownArgumentType] |
208 | 210 |
|
209 | 211 | assert cast(Any, response.is_closed) is True |
210 | 212 |
|
|
0 commit comments