Skip to content

test: switch from aioresponses to aiointercept#136

Merged
bdraco merged 1 commit into
mainfrom
switch-to-aiointercept
Jun 22, 2026
Merged

test: switch from aioresponses to aiointercept#136
bdraco merged 1 commit into
mainfrom
switch-to-aiointercept

Conversation

@bdraco

@bdraco bdraco commented Jun 22, 2026

Copy link
Copy Markdown
Member

What

Switch the test suite from aioresponses to aiointercept.

Why

aioresponses breaks on aiohttp 3.14 because it instantiates the internal ClientResponse directly; aiointercept routes requests through a real test server, so it keeps working as aiohttp internals change. See aio-libs/aiohttp#12815.

Notes

The mock API is compatible, so only the import and the context manager changed; the external SolarEdge URLs are intercepted with mock_external_urls=True; tests pass locally with full coverage.

aioresponses breaks on aiohttp 3.14 because it instantiates the internal
ClientResponse directly; aiointercept routes through a real test server, so
it survives aiohttp internals changing. See aio-libs/aiohttp#12815.
@bdraco
bdraco marked this pull request as ready for review June 22, 2026 16:02
@bdraco
bdraco merged commit 9f0abd5 into main Jun 22, 2026
8 checks passed
@bdraco
bdraco deleted the switch-to-aiointercept branch June 22, 2026 16:02
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

1 participant