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

Fix asyncio testing setup #3832

Merged
merged 4 commits into from
Dec 2, 2024
Merged

Fix asyncio testing setup #3832

merged 4 commits into from
Dec 2, 2024

Conversation

sl0thentr0py
Copy link
Member

  • default asyncio_default_fixture_loop_scope to function to get rid of deprecation messages
  • Change test_asyncio.py event loop scopes to module to avoid that event loop bleeding into all other tests in the same session.
  • Remove explicit event_loops since pytest-asyncio takes care of those

* default `asyncio_default_fixture_loop_scope` to `function` to get rid
  of deprecation messages
* Change `test_asyncio.py` event loop scopes to `module` to avoid that
  event loop bleeding into all other tests in the same `session`.
* Remove explicit `event_loop`s since `pytest-asyncio` takes care of
  those
Copy link

codecov bot commented Nov 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.95%. Comparing base (c4274a3) to head (2c85521).
Report is 1 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3832   +/-   ##
=======================================
  Coverage   79.94%   79.95%           
=======================================
  Files         137      137           
  Lines       15421    15421           
  Branches     2614     2614           
=======================================
+ Hits        12329    12330    +1     
  Misses       2223     2223           
+ Partials      869      868    -1     

see 1 file with indirect coverage changes

Copy link
Member

@antonpirker antonpirker left a comment

Choose a reason for hiding this comment

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

Looks good.

The problem with app not being an argument in httpx anymore (since the release on Nov 28th will be fixed in another PR, I guess)

See: https://github.com/encode/httpx/blob/master/CHANGELOG.md

@sentrivana
Copy link
Contributor

Merged master into this to get the ci fixes in

@sl0thentr0py sl0thentr0py merged commit 6bd7e08 into master Dec 2, 2024
136 checks passed
@sl0thentr0py sl0thentr0py deleted the neel/fix-asyncio-testig branch December 2, 2024 14:51
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.

3 participants