Manuel Miranda

Results 39 comments of Manuel Miranda

my issue is more focused on how to ensure that `ensure_future` is being called with a specific coroutine generated by function X, not about mocking or spying the `ensure_future` behavior....

Ahh yeah good one. Thanks for the help! :)

Hey, so I just run into this issue that I wrote a while ago and seems that with the newest versions this is not possible anymore as the `return_value` doesn't...

> I'm not sure how common it is to assert that ensure_future has been called on a coroutine function. Especially now that there's asyncio.create_task(). would this check work with `asyncio.create_task`?...

> @Kentzo implemented assert_awaited*() methods for CoroutineMock (since 0.12), do you think it can work in your case? and its great to verify a coroutine has been awaited. In my...

> It's seems rather complicated to do well, and that it doesn't really guarantee that this coroutine running in the background will indeed be executed later. Agreed, but my point...

Hey @rspadim, it shouldn't be hard to add orjson as a supported library to use in the json serializer. Feel free (or anyone else) to provide a PR for it!...

Hey sorry for the delay, I never tested compatibility with `cython`. I guess the error is because of how the decorator introspects the arguments of the function and so. I...

Hey @JeppeKlitgaard, I don't have anything against adding typing so go for it 👍. Same with dropping 3.5 support, been a while since wanted to do this plus adding support...

Hey @jerr0328, maybe I would go for passing `url` param to the decorator and then inside the decorator create the instance with Cache.from_url which would be quite easy. You make...