Skip to content

feature: async support - #225

Merged
phanak-sap merged 19 commits into
masterfrom
async-feature
Sep 5, 2022
Merged

feature: async support#225
phanak-sap merged 19 commits into
masterfrom
async-feature

Conversation

@phanak-sap

@phanak-sapphanak-sap commented Aug 11, 2022

Copy link
Copy Markdown
Contributor

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

codecov-commenter commented Aug 14, 2022

Copy link
Copy Markdown

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 FilesCoverage Δ
pyodata/v2/service.py89.58% <55.17%> (-1.79%)⬇️
pyodata/client.py100.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-sapand 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-sapphanak-sap changed the title [WIP-do not merge] feature: async supportfeature: async supportAug 19, 2022
@phanak-sapphanak-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-sapphanak-sap linked an issue Aug 28, 2022 that may be closed by this pull request
7 tasks
Comment threadpyodata/client.py
url = url.rstrip('/') + '/'

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

Copy link
Copy Markdown
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
Copy Markdown
ContributorAuthor

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 masterSep 5, 2022
Sign up for freeto 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

@phanak-sap@codecov-commenter@jfilak@mnunzio@Albo90