Correctly Patching a method in pytest when Module is already patched

后端 未结 0 1630
甜味超标
甜味超标 2020-12-23 02:53

We have a test fixture which patches two classes like below.

@pytest.fixture
def license_fixture(mocker):
    
    mocker.patch(\'api.license_api.UserLicense\         


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