pook icon indicating copy to clipboard operation
pook copied to clipboard

HTTP traffic mocking and testing made easy in Python

Results 22 pook issues
Sort by recently updated
recently updated
newest added

Hi, thanks for pook, it's a very handy library that I use in my pytest tests. However I think I found a bug (using pook v1.0.1, Python 3.8.2, requests 2.21.0,...

bug
enhancement

Hello, Whenever I run into the classic `PookNoMatches` error, it seems like `pook` will try to show the "closest" mock that exists that is similar to the request that was...

This PR fixes the #72 issue. A detailed description is available in the last commit. I've achieved it by keeping track of the real module path when we do patching....

Some SDK's use `urllib` instead of `urllib3`, we use `pook` to intercept and mock the responses regardless of what the SDK uses underneat. This PR includes the code that we...

When using with urllib an exception is throw as response doesn't have a code attribute. Uncovered this while trying to mock a prometheus push gateway endpoint with prometheus client library....

help wanted

Would be fantastic to support the https://github.com/encode/httpx async client

This PR adds a very very basic (and highly likely buggy) support for mocking websockets.

The version of xmltodict conflicts with wechatpy, please upgrade it to 0.11.0

If a response header is binary, for example something like `('Content-Type', b'application/pdf')`, when pook tries to iterate over the headers, it is expecting a string and throws an error. The...

bug