diff --git a/.stats.yml b/.stats.yml index 908d46bb7..c2219e29e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1286 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8ed1feaaa675343ade60163c51b1b39494c9bff519d1b15fa00c5ec0fe182abf.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-03573240641a2c0ec81ecd650a4e8be921d8cf797acfa5bcb504300e254a9ce3.yml diff --git a/tests/test_client.py b/tests/test_client.py index e16d2dc46..ebfafa47b 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -372,6 +372,7 @@ class TestCloudflare: assert request.headers.get("X-Auth-Key") == api_key client2 = Cloudflare(base_url=base_url, api_key=None, api_email=None, _strict_response_validation=True) + with pytest.raises( TypeError, match="Could not resolve authentication method. Expected one of api_email, api_key, api_token or user_service_key to be set. Or for one of the `X-Auth-Email`, `X-Auth-Key`, `Authorization` or `X-Auth-User-Service-Key` headers to be explicitly omitted", @@ -1142,6 +1143,7 @@ class TestAsyncCloudflare: assert request.headers.get("X-Auth-Key") == api_key client2 = AsyncCloudflare(base_url=base_url, api_key=None, api_email=None, _strict_response_validation=True) + with pytest.raises( TypeError, match="Could not resolve authentication method. Expected one of api_email, api_key, api_token or user_service_key to be set. Or for one of the `X-Auth-Email`, `X-Auth-Key`, `Authorization` or `X-Auth-User-Service-Key` headers to be explicitly omitted",