How do I patch a deeply buried method on an object that never explicitly exists in the test file?

后端 未结 0 1060
暗喜
暗喜 2021-01-29 12:04

Here is a portion of my test file:

@pytest.fixture
def live_sftp():

    sftp = SFTP(HOST, USERNAME, PASSWORD)

    # add some directories and files

    yield sf         


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