Skip to content

feat(api): manual updates #505

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 2 additions & 16 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ def event_loop() -> Iterator[asyncio.AbstractEventLoop]:
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")

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


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

with Finch(
base_url=base_url,
access_token=access_token,
client_id=client_id,
client_secret=client_secret,
_strict_response_validation=strict,
) as client:
with Finch(base_url=base_url, access_token=access_token, _strict_response_validation=strict) as client:
yield client


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

async with AsyncFinch(
base_url=base_url,
access_token=access_token,
client_id=client_id,
client_secret=client_secret,
_strict_response_validation=strict,
) as client:
async with AsyncFinch(base_url=base_url, access_token=access_token, _strict_response_validation=strict) as client:
yield client
Loading