📜  pytest 本地模块 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:13.302000             🧑  作者: Mango

代码示例1
import sys, os
myPath = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, myPath + '/../')

# from https://stackoverflow.com/questions/10253826/path-issue-with-pytest-importerror-no-module-named-yadayadayada