Closed liavkoren closed 2 years ago
Aioresponses is a helper to mock/fake web requests in python aiohttp package.
Ah. As I thought. Gonna close this -- I actually found the datadog python client to be kind of broken and poorly documented, and decided it's easier to just use aiohttp directly.
Datadog's api client implements concurrency using subprocesses. If you pass a
async_req=True
flag in, you get amultiprocessing.pool.ApplyResult
instance back. Very quickly testing this with aioresponses doesn't seem to work; is this a pattern that aioresponses is currently set up to handle?Minimal test case:
reporter.py:
test_reporter.py: