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.8 .
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
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
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 '