Pytest test file that reads from current directory

后端 未结 0 732
别那么骄傲
别那么骄傲 2021-01-27 04:06

I am trying to do a unit test with Pytest on a function of the form

def function():
    with open(\'file.txt\', \'r\') as f         


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