-
Notifications
You must be signed in to change notification settings - Fork 96
Run Session class tests in an event loop #881
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
from planet.exceptions import ClientError | ||
|
||
|
||
@pytest.mark.asyncio | ||
@pytest.mark.parametrize("client_name,client_class", | ||
[('data', DataClient), ('orders', OrdersClient), | ||
('subscriptions', SubscriptionsClient)]) | ||
|
@@ -16,6 +17,7 @@ async def test_session_get_client(client_name, client_class): | |
assert isinstance(client, client_class) | ||
|
||
|
||
@pytest.mark.asyncio | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I lost these along the way. It would have helped if pytest failed instead of skipping. Maybe we can configure it to do so. I don't immediately see how, it seems particular to async functions. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. agreed. will keep an eye out for a way to do this. |
||
async def test_session_get_client_error(): | ||
"""Get an exception when no such client exists.""" | ||
async with Session() as session: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change log updated