-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I was thinking that it would be useful to have typed based matching. One of the use cases would when app sends an generated uuid and all you care about is if the type is correct and doesn't really care about specific value.
ie.
import uuid
import respx
import httpx
respx_mock.post("http://example.com", json={"id": uuid.UUID})
httpx.post("http://example.com", json={"id": uuid.uuid4()} # should be mocked by respxThis could be extended to other types like simple types, types from typing module, etc.
WDYT?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request