Can't use MagicMock while in await expression using mocker.patch.object

后端 未结 0 543
北海茫月
北海茫月 2021-01-18 17:05

I have a fixture that mocks a non async function.

@pytest.fixture
def publisher_mock(mocker):
    yield mocker.patch.object(publisher.publisher, \'publish_msg         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题