Luca Palmieri
Luca Palmieri
There is indeed a bug... But in the solution! As I found out after having written the `solutions` branch, there is a corner case you can hit if you try...
This has been fixed in the next book release by updating everything to latest. Closing!
There's nothing preventing us from supporting it, apart from development effort. It's not actively being worked on though.
What kind of async tasks are you trying to perform in `response_with`?
I'll need an example a bit more concrete to understand if it makes sense to extend the library or not 😄
Can you provide some code examples of what this would look like?
Thanks for pitching in @sazzer! I'd definitely be open to have either `received_requests_for_named_mock` or a `get_match_count` method. If you're willing to submit a PR, I'm happy to review it!
> Simpler still would be if the Request object returned by received_requests() just included the (optional) name of the mock that it matched, and then the caller can just use...
Hey @mre! Right now I don't believe there is a way for you to simulate a connection delay: I would imagine that being a `set_connect_delay` method on the `MockServer` itself...
I was under the impression that adding a delay on `accept` calls would have not tricked HTTP clients, but, alas, I have not verified it. Would you like to give...