@@ -156,7 +156,8 @@ def test_no_uri_supplied() -> None:
156156
157157
158158@pytest .mark .filterwarnings (
159- "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning" # noqa: E501
159+ "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. "
160+ "Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning"
160161)
161162def test_token_200 (rest_mock : Mocker ) -> None :
162163 rest_mock .post (
@@ -179,7 +180,8 @@ def test_token_200(rest_mock: Mocker) -> None:
179180
180181
181182@pytest .mark .filterwarnings (
182- "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning" # noqa: E501
183+ "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. "
184+ "Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning"
183185)
184186def test_token_200_without_optional_fields (rest_mock : Mocker ) -> None :
185187 rest_mock .post (
@@ -198,7 +200,8 @@ def test_token_200_without_optional_fields(rest_mock: Mocker) -> None:
198200
199201
200202@pytest .mark .filterwarnings (
201- "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning" # noqa: E501
203+ "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. "
204+ "Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning"
202205)
203206def test_token_with_optional_oauth_params (rest_mock : Mocker ) -> None :
204207 mock_request = rest_mock .post (
@@ -223,7 +226,8 @@ def test_token_with_optional_oauth_params(rest_mock: Mocker) -> None:
223226
224227
225228@pytest .mark .filterwarnings (
226- "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning" # noqa: E501
229+ "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. "
230+ "Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning"
227231)
228232def test_token_with_optional_oauth_params_as_empty (rest_mock : Mocker ) -> None :
229233 mock_request = rest_mock .post (
@@ -246,7 +250,8 @@ def test_token_with_optional_oauth_params_as_empty(rest_mock: Mocker) -> None:
246250
247251
248252@pytest .mark .filterwarnings (
249- "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning" # noqa: E501
253+ "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. "
254+ "Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning"
250255)
251256def test_token_with_default_scope (rest_mock : Mocker ) -> None :
252257 mock_request = rest_mock .post (
@@ -267,7 +272,8 @@ def test_token_with_default_scope(rest_mock: Mocker) -> None:
267272
268273
269274@pytest .mark .filterwarnings (
270- "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning" # noqa: E501
275+ "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. "
276+ "Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning"
271277)
272278def test_token_with_custom_scope (rest_mock : Mocker ) -> None :
273279 mock_request = rest_mock .post (
@@ -289,7 +295,8 @@ def test_token_with_custom_scope(rest_mock: Mocker) -> None:
289295
290296
291297@pytest .mark .filterwarnings (
292- "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning" # noqa: E501
298+ "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. "
299+ "Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning"
293300)
294301def test_token_200_w_oauth2_server_uri (rest_mock : Mocker ) -> None :
295302 rest_mock .post (
@@ -314,7 +321,8 @@ def test_token_200_w_oauth2_server_uri(rest_mock: Mocker) -> None:
314321
315322
316323@pytest .mark .filterwarnings (
317- "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning" # noqa: E501
324+ "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. "
325+ "Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning"
318326)
319327def test_config_200 (requests_mock : Mocker ) -> None :
320328 requests_mock .get (
@@ -402,7 +410,8 @@ def test_config_sets_headers(requests_mock: Mocker) -> None:
402410
403411
404412@pytest .mark .filterwarnings (
405- "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning" # noqa: E501
413+ "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. "
414+ "Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning"
406415)
407416def test_token_400 (rest_mock : Mocker ) -> None :
408417 rest_mock .post (
@@ -418,7 +427,8 @@ def test_token_400(rest_mock: Mocker) -> None:
418427
419428
420429@pytest .mark .filterwarnings (
421- "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning" # noqa: E501
430+ "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. "
431+ "Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning"
422432)
423433def test_token_401 (rest_mock : Mocker ) -> None :
424434 message = "invalid_client"
@@ -664,7 +674,8 @@ def test_list_namespace_with_parent_404(rest_mock: Mocker) -> None:
664674
665675
666676@pytest .mark .filterwarnings (
667- "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning" # noqa: E501
677+ "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. "
678+ "Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning"
668679)
669680@pytest .mark .parametrize ("status_code" , [401 , 419 ])
670681def test_list_namespaces_token_expired_success_on_retries (rest_mock : Mocker , status_code : int ) -> None :
@@ -2017,7 +2028,8 @@ def test_custom_namespace_separator(rest_mock: Mocker) -> None:
20172028
20182029
20192030@pytest .mark .filterwarnings (
2020- "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning" # noqa: E501
2031+ "ignore:Deprecated in 0.8.0, will be removed in 1.0.0. "
2032+ "Iceberg REST client is missing the OAuth2 server URI:DeprecationWarning"
20212033)
20222034def test_auth_header (rest_mock : Mocker ) -> None :
20232035 mock_request = rest_mock .post (
0 commit comments