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

🧪 Rewire pytest fixtures avoiding import loops #915

Merged
merged 2 commits into from
Jan 14, 2024

Conversation

webknjaz
Copy link
Member

This patch also refactors and reduces the duplication of the previously existing fixtures for retrieving different multidict module implementations and makes the c-extension testing controllable by a CLI option on the pytest level.

Fixes #837

Are there changes in behavior for the user?

The contributors will have a better control over what to test. And there shouldn't be import loops preventing the testing of C extensions in some cases.

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes

tests/test_multidict.py Fixed Show fixed Hide fixed
tests/test_multidict.py Fixed Show fixed Hide fixed
@webknjaz webknjaz force-pushed the bugfixes/tests-import-loop branch 9 times, most recently from 4f58a19 to f5989b3 Compare January 12, 2024 03:01
tests/test_multidict.py Dismissed Show dismissed Hide dismissed
@webknjaz webknjaz force-pushed the bugfixes/tests-import-loop branch 6 times, most recently from aa8c76d to fa62492 Compare January 12, 2024 03:50
Copy link

codecov bot commented Jan 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9206b3d) 76.19% compared to head (548523e) 88.88%.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #915       +/-   ##
===========================================
+ Coverage   76.19%   88.88%   +12.69%     
===========================================
  Files           5        5               
  Lines         504      504               
  Branches      116      116               
===========================================
+ Hits          384      448       +64     
+ Misses        118       34       -84     
- Partials        2       22       +20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

tests/test_multidict.py Dismissed Show dismissed Hide dismissed
@webknjaz webknjaz force-pushed the bugfixes/tests-import-loop branch 6 times, most recently from b0c5b45 to 7451dce Compare January 13, 2024 20:33
This patch also refactors and reduces the duplication of the previously
existing fixtures for retrieving different multidict module
implementations and makes the c-extension testing controllable by a CLI
option on the pytest level.

Fixes aio-libs#837
webknjaz added a commit to webknjaz/multidict that referenced this pull request Jan 14, 2024
@webknjaz webknjaz marked this pull request as ready for review January 14, 2024 01:55
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Jan 14, 2024
@webknjaz webknjaz merged commit 920b151 into aio-libs:master Jan 14, 2024
44 checks passed
@webknjaz webknjaz linked an issue Jan 14, 2024 that may be closed by this pull request
webknjaz added a commit that referenced this pull request Jan 14, 2024
@webknjaz webknjaz mentioned this pull request Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:provided There is a change note present in this PR bug enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cibuild wheel setup is broken Refactor test suite
1 participant