You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make MockVWS intercept both requests and httpx (#2998)
* Make MockVWS intercept both requests and httpx
MockVWS now starts both responses (for requests) and respx (for httpx) mocks
simultaneously, eliminating the need for a separate MockVWSForHttpx class.
Removes MockVWSForHttpx entirely. Updates all tests and docs to reflect this change.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
* Fix pylint C0413 and C0402 in respx decorators
Move TYPE_CHECKING guard to after all imports to fix wrong-import-position.
Replace "MockRouter" in docstrings with "respx router" to fix spelling warning.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Suppress pyrefly false positive with inline ignore comments
pyrefly's dual search path ("." and "src") causes the same class to be
seen under two module paths, triggering a spurious bad-argument-type error
when passing API objects to start_respx_router.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Replace concrete type imports with Protocol to fix pyrefly false positive
Define _APIHandler Protocol in _respx_mock_server/decorators.py so it no
longer imports concrete classes from _requests_mock_server/. This removes
the cross-module dependency that caused pyrefly to see the same class under
two module paths (mock_vws.* vs src.mock_vws.*) and report a spurious
bad-argument-type error.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
0 commit comments