Skip to content

Commit 5a676f5

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat: OpenAPI spec update via Stainless API (#85)
1 parent 68a9ed1 commit 5a676f5

File tree

2 files changed

+272
-40
lines changed

2 files changed

+272
-40
lines changed

tests/conftest.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,19 @@ def event_loop() -> Iterator[asyncio.AbstractEventLoop]:
2626

2727
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
2828

29+
api_key = "144c9defac04969c7bfad8efaa8ea194"
30+
api_email = "[email protected]"
31+
2932

3033
@pytest.fixture(scope="session")
3134
def client(request: FixtureRequest) -> Iterator[Cloudflare]:
3235
strict = getattr(request, "param", True)
3336
if not isinstance(strict, bool):
3437
raise TypeError(f"Unexpected fixture parameter type {type(strict)}, expected {bool}")
3538

36-
with Cloudflare(base_url=base_url, _strict_response_validation=strict) as client:
39+
with Cloudflare(
40+
base_url=base_url, api_key=api_key, api_email=api_email, _strict_response_validation=strict
41+
) as client:
3742
yield client
3843

3944

@@ -43,5 +48,7 @@ async def async_client(request: FixtureRequest) -> AsyncIterator[AsyncCloudflare
4348
if not isinstance(strict, bool):
4449
raise TypeError(f"Unexpected fixture parameter type {type(strict)}, expected {bool}")
4550

46-
async with AsyncCloudflare(base_url=base_url, _strict_response_validation=strict) as client:
51+
async with AsyncCloudflare(
52+
base_url=base_url, api_key=api_key, api_email=api_email, _strict_response_validation=strict
53+
) as client:
4754
yield client

0 commit comments

Comments
 (0)