Pytest mock using decorator to mock function containing context manager return value not passed

前端 未结 0 1873
夕颜
夕颜 2021-01-17 01:55

So I am struggling with mocking this function due to the context manager.

Function under test

import fitz

def with_test_func(next_pdfs_path):
    text         


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