Skip to content
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

feature: async support #225

Merged
merged 19 commits into from
Sep 5, 2022
Merged

feature: async support #225

merged 19 commits into from
Sep 5, 2022

Conversation

phanak-sap
Copy link
Contributor

@phanak-sap phanak-sap commented Aug 11, 2022

This is basically the code from PR #210 (that one merged to feature-branch), by @Albo90, with more tests.

This mess will be squashed to one "feature" commit to master.

@phanak-sap phanak-sap marked this pull request as draft August 11, 2022 14:26
@codecov-commenter
Copy link

codecov-commenter commented Aug 14, 2022

Codecov Report

Merging #225 (f72fd36) into master (e18fc73) will decrease coverage by 0.56%.
The diff coverage is 79.03%.

@@            Coverage Diff             @@
##           master     #225      +/-   ##
==========================================
- Coverage   92.90%   92.34%   -0.57%     
==========================================
  Files           6        6              
  Lines        2792     2847      +55     
==========================================
+ Hits         2594     2629      +35     
- Misses        198      218      +20     
Impacted Files Coverage Δ
pyodata/v2/service.py 89.58% <55.17%> (-1.79%) ⬇️
pyodata/client.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

phanak-sap and others added 7 commits August 14, 2022 16:04
Switch "from unittest.mock import patch" to pytest.warns.
Maybe it is the reason why aiohttp and python 3.7 does not go together on CI builds, and if it is not a root cause, it looks cleaner anyway. Stick to one testing framework stuff.
Switch "from unittest.mock import patch" to pytest.warns.
@phanak-sap phanak-sap changed the title [WIP-do not merge] feature: async support feature: async support Aug 19, 2022
@phanak-sap phanak-sap added this to the 1.10.0 milestone Aug 19, 2022
@phanak-sap phanak-sap marked this pull request as ready for review August 19, 2022 08:52
@phanak-sap phanak-sap requested a review from filak-sap August 19, 2022 09:13
@phanak-sap phanak-sap requested a review from mnezerka August 27, 2022 10:53
@phanak-sap phanak-sap linked an issue Aug 28, 2022 that may be closed by this pull request
7 tasks
url = url.rstrip('/') + '/'

if metadata is None:
metadata = await _async_fetch_metadata(connection, url, logger)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you kill all async here? What's the difference between the regular client?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, await (asynchronous wait) is calling the asynchronous _async_fetch_metadata function.

@phanak-sap phanak-sap merged commit fd28f5f into master Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants