Remove pytest_plugin#10762
Conversation
Codecov Report❌ Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
Missing change log? |
for more information, see https://pre-commit.ci
… drop-pytest-plugin
for more information, see https://pre-commit.ci
… drop-pytest-plugin
for more information, see https://pre-commit.ci
… drop-pytest-plugin
for more information, see https://pre-commit.ci
|
|
||
|
|
||
| pytest_plugins = ("aiohttp.pytest_plugin", "pytester") | ||
| pytest_plugins = ("pytest_asyncio", "pytest_aiohttp", "pytester") |
There was a problem hiding this comment.
| pytest_plugins = ("pytest_asyncio", "pytest_aiohttp", "pytester") | |
| pytest_plugins = ("pytester",) |
There was a problem hiding this comment.
I originally intended to add pytest_aiohttp to enforce it as a required plugin. Might help downstream packagers avoid getting confused by the change.
There was a problem hiding this comment.
Or we could just add a changelog fragment..
There was a problem hiding this comment.
Or we could do both...
There was a problem hiding this comment.
Just add a code comment explaining the motivation.
for more information, see https://pre-commit.ci
… drop-pytest-plugin
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Co-authored-by: Sam Bull <aa6bs0@sambull.org>
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 |
| server = TestServer(__param, **server_kwargs) | ||
| client = aiohttp_client_cls(server, **kwargs) | ||
|
|
||
| await client.start_server() |
Removed cleanup fixture for pending file close operations.
This will be maintained exclusively in pytest-aiohttp going forwards.