[issue45028] module 'unittest.mock' has no attribute 'AsyncMock'

2021-08-27 Thread Phani Kumar Yadavilli
Phani Kumar Yadavilli added the comment: Sure, will do that. Regards Phani kumar yadavilli On Fri, Aug 27, 2021 at 7:54 PM Karthikeyan Singaravelan < rep...@bugs.python.org> wrote: > > Karthikeyan Singaravelan added the comment: > > AsyncMock is a feature of Python 3.

[issue45028] module 'unittest.mock' has no attribute 'AsyncMock'

2021-08-27 Thread Phani Kumar Yadavilli
Phani Kumar Yadavilli added the comment: I am using python 3.7. Regards Phani kumar yadavilli On Fri, Aug 27, 2021 at 7:49 PM Karthikeyan Singaravelan < rep...@bugs.python.org> wrote: > > Karthikeyan Singaravelan added the comment: > > What version of Py

[issue45028] module 'unittest.mock' has no attribute 'AsyncMock'

2021-08-27 Thread Phani Kumar Yadavilli
Phani Kumar Yadavilli added the comment: from unittest import mock @mock.patch( "project.celerytasks.embedder.BulkEmbedder.fetch_embedding", mock.AsyncMock(return_value=embedding_response), ) def test_document_embedding(): doc = { "orgId": "orgtes

[issue45028] module 'unittest.mock' has no attribute 'AsyncMock'

2021-08-27 Thread Phani Kumar Yadavilli
New submission from Phani Kumar Yadavilli : The unittest.mock does not have AsyncMock. I tested the same code in 3.9 it works fine. -- messages: 400400 nosy: wandermonk priority: normal severity: normal status: open title: module 'unittest.mock' has no attribute 'AsyncMock' type