-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove make_mocked_coro() #9212
Comments
Hi, Is anyone working on this issue? Thanks! |
Go ahead. I think there's probably a lot of uses of the function, so you may want to replace the function from a couple of files in each PR, to avoid too many change resulting in conflicts. |
I searched through the repo and it reports 85 references throughout the code. I think I can do this in 4 PRs, modifying roughly 20 references in each. If you have any suggestions, please feel free to give them! |
Hi @Dreamsorcerer , I have modified a few files in this PR. Please review the changes and let me know if any corrections are required. Thanks! |
Hi @Dreamsorcerer , |
I can take a look at this if this is still open. |
Go ahead. See the linked PR and feedback for a head-start (you could start by forking that one). |
Hey @akshayphdk, can I work on this issue together with you? There should be 17 files need to be updated, and If you continue the work on the linked PR (involves 13 files) I can create another PR for the rest 4 files. |
aiohttp.test_utils.make_mocked_coro() basically does what mock.AsyncMock() does and is not relevant today.
We should remove it, but there are still a lot of references to it in the tests, so will require replacing all those references (with
mock.patch
,mock.create_autospec
etc.).The text was updated successfully, but these errors were encountered: