Skip to content

Support compatible HTTP response types - #329

Open
wzj1228516103 wants to merge 1 commit into
lundberg:masterfrom
wzj1228516103:fix/accept-compatible-response-types
Open

wzj1228516103 wants to merge 1 commit into
lundberg:masterfrom
wzj1228516103:fix/accept-compatible-response-types

Conversation

@wzj1228516103

Copy link
Copy Markdown

Summary

Allow response-like objects from compatible HTTP client forks to be used as mocked return values and side effects.

Response validation now checks the interface RESPX consumes: status_code, headers, stream, and extensions.

Tests

  • pytest tests/test_router.py -q --no-cov: 52 passed
  • Full suite: 322 passed, 1 failed, 2 skipped
  • The remaining failure is caused by the local HTTP proxy intercepting a pass-through test with a CONNECT request.

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