Skip to content

Remove pytest_plugin#10762

Draft
Dreamsorcerer wants to merge 257 commits intomasterfrom
drop-pytest-plugin
Draft

Remove pytest_plugin#10762
Dreamsorcerer wants to merge 257 commits intomasterfrom
drop-pytest-plugin

Conversation

@Dreamsorcerer
Copy link
Copy Markdown
Member

This will be maintained exclusively in pytest-aiohttp going forwards.

@Dreamsorcerer Dreamsorcerer added the backport:skip Skip backport bot label Apr 20, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 20, 2025

Codecov Report

❌ Patch coverage is 99.42363% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.94%. Comparing base (0471d65) to head (369573c).
⚠️ Report is 12 commits behind head on master.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
tests/test_benchmarks_client_ws.py 96.42% 0 Missing and 1 partial ⚠️
tests/test_benchmarks_web_fileresponse.py 96.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10762      +/-   ##
==========================================
+ Coverage   98.92%   98.94%   +0.01%     
==========================================
  Files         134      131       -3     
  Lines       46750    46517     -233     
  Branches     2429     2409      -20     
==========================================
- Hits        46248    46025     -223     
+ Misses        373      367       -6     
+ Partials      129      125       -4     
Flag Coverage Δ
Autobahn 22.40% <30.92%> (?)
CI-GHA 98.91% <99.42%> (-0.08%) ⬇️
OS-Linux 98.66% <97.11%> (-0.07%) ⬇️
OS-Windows 97.02% <96.54%> (+0.03%) ⬆️
OS-macOS 97.92% <97.11%> (+0.04%) ⬆️
Py-3.10.11 97.41% <99.42%> (+0.02%) ⬆️
Py-3.10.20 97.90% <97.11%> (+0.04%) ⬆️
Py-3.11.15 98.15% <97.11%> (+0.03%) ⬆️
Py-3.11.9 97.68% <99.42%> (+0.02%) ⬆️
Py-3.12.10 97.76% <99.42%> (+0.02%) ⬆️
Py-3.12.13 98.24% <97.11%> (+0.03%) ⬆️
Py-3.13.13 98.47% <99.42%> (+0.02%) ⬆️
Py-3.14.4 98.44% <99.42%> (-0.07%) ⬇️
Py-3.14.4t 97.55% <96.53%> (+0.03%) ⬆️
Py-pypy3.11.15-7.3.21 97.41% <94.23%> (+0.06%) ⬆️
VM-macos 97.92% <97.11%> (+0.04%) ⬆️
VM-ubuntu 98.66% <97.11%> (-0.07%) ⬇️
VM-windows 97.02% <96.54%> (+0.03%) ⬆️
cython-coverage 37.92% <11.81%> (-0.17%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@webknjaz
Copy link
Copy Markdown
Member

Missing change log?

@Dreamsorcerer Dreamsorcerer marked this pull request as draft April 22, 2025 11:55
Comment thread tests/conftest.py Outdated


pytest_plugins = ("aiohttp.pytest_plugin", "pytester")
pytest_plugins = ("pytest_asyncio", "pytest_aiohttp", "pytester")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
pytest_plugins = ("pytest_asyncio", "pytest_aiohttp", "pytester")
pytest_plugins = ("pytester",)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I originally intended to add pytest_aiohttp to enforce it as a required plugin. Might help downstream packagers avoid getting confused by the change.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Or we could just add a changelog fragment..

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Or we could do both...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just add a code comment explaining the motivation.

Comment thread tests/test_connector.py Fixed
Comment thread tests/test_benchmarks_client.py Outdated
Comment thread tests/test_benchmarks_client.py Outdated
Comment thread tests/test_benchmarks_web_urldispatcher.py Outdated
Comment thread tests/test_benchmarks_client_ws.py Outdated
Comment thread tests/test_benchmarks_client_ws.py
Comment thread tests/test_benchmarks_client_ws.py Outdated
Co-authored-by: Sam Bull <aa6bs0@sambull.org>
Comment thread tests/test_benchmarks_client_ws.py
Comment thread tests/test_benchmarks_client_ws.py Outdated
Refactor aiohttp_client_sync fixture to remove overloads and simplify request type handling.
server = TestServer(__param, **server_kwargs)
client = aiohttp_client_cls(server, **kwargs)

await client.start_server()

import asyncio
from collections.abc import Iterator
from typing import Any, TypeVar
Comment thread tests/test_benchmarks_web_fileresponse.py Fixed
server = TestServer(__param, **server_kwargs)
client = aiohttp_client_cls(server, **kwargs)

await client.start_server()
Comment thread tests/test_benchmarks_web_fileresponse.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip Skip backport bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants