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
{{ message }}
Repository navigation
Commit de0c415
Browse filesBrowse the repository at this point in the historyBrowse files
test(story-1.8): consolidate five in-tree transport stubs into RecordedTransport
Replaces the file-local _FakeTransport (test_client_construction.py),
_OkTransport and _FailingTransport (test_middleware.py), two distinct
_RecordingTransport variants (test_client_methods.py,
test_client_response_model.py, test_client_middleware_wiring.py), and
_TrackingTransport (test_client_lifecycle.py) with one shared
RecordedTransport class.
Each replacement is mechanical:
- _FakeTransport() → RecordedTransport()
- _OkTransport() → RecordedTransport(default=Response(...))
- _FailingTransport(exc) → RecordedTransport(default=exc)
- _RecordingTransport (last_request flavor) → RecordedTransport(default=Response(...))
- _RecordingTransport (calls counter) → RecordedTransport(default=Response(...))
with .calls → len(transport.requests)
- _TrackingTransport → RecordedTransport() (aclose_calls attribute preserved)
Also fixes a pre-existing ruff format violation in recorded.py (ternary
expression on three lines instead of one).
No test behavior changes. Total test count unchanged from this commit's
edits.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments