Ask questionsTesting with pytest always issues a file not found error
Whenever I run the tests, I always getting this strange error:
Detail: Unable to read file (Error: File not found
I really don't have a
c
file in my project. But where is it coming from?
Answer
questions
siben168
i have the exactly same issue as following when the file is actually in the folder, "d:\workspace\nebula_data\folderabc\tests\test_china_stock_basics.py"
Error Detail: Unable to read file (Error: File not found (d:\workspace\nebula_data\tests\test_china_stock_basics.py))
seems the pytest incorrectly calculated the path of file by ignoring its parently folder, but it wired that actually other test files in the same folder works well.
Related questions