Skip to content

Commit 5d63f1f

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): manual updates (#505)
1 parent 17ba83b commit 5d63f1f

File tree

2 files changed

+36
-316
lines changed

2 files changed

+36
-316
lines changed

tests/conftest.py

+2-16
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ def event_loop() -> Iterator[asyncio.AbstractEventLoop]:
2727
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
2828

2929
access_token = "My Access Token"
30-
client_id = "4ab15e51-11ad-49f4-acae-f343b7794375"
31-
client_secret = "My Client Secret"
3230

3331

3432
@pytest.fixture(scope="session")
@@ -37,13 +35,7 @@ def client(request: FixtureRequest) -> Iterator[Finch]:
3735
if not isinstance(strict, bool):
3836
raise TypeError(f"Unexpected fixture parameter type {type(strict)}, expected {bool}")
3937

40-
with Finch(
41-
base_url=base_url,
42-
access_token=access_token,
43-
client_id=client_id,
44-
client_secret=client_secret,
45-
_strict_response_validation=strict,
46-
) as client:
38+
with Finch(base_url=base_url, access_token=access_token, _strict_response_validation=strict) as client:
4739
yield client
4840

4941

@@ -53,11 +45,5 @@ async def async_client(request: FixtureRequest) -> AsyncIterator[AsyncFinch]:
5345
if not isinstance(strict, bool):
5446
raise TypeError(f"Unexpected fixture parameter type {type(strict)}, expected {bool}")
5547

56-
async with AsyncFinch(
57-
base_url=base_url,
58-
access_token=access_token,
59-
client_id=client_id,
60-
client_secret=client_secret,
61-
_strict_response_validation=strict,
62-
) as client:
48+
async with AsyncFinch(base_url=base_url, access_token=access_token, _strict_response_validation=strict) as client:
6349
yield client

0 commit comments

Comments
 (0)