py.test默认会导入
conftest.py和所有与
python_files模式匹配的Python文件
test_*.py。如果您有测试装置,则需要
conftest.py从依赖它的测试文件中包括或导入它:
from sonoftest import pytest_addoption, cmdopt

py.test默认会导入
conftest.py和所有与
python_files模式匹配的Python文件
test_*.py。如果您有测试装置,则需要
conftest.py从依赖它的测试文件中包括或导入它:
from sonoftest import pytest_addoption, cmdopt