open:conftest.py

conftest.py

from glob import glob
 
 
def refactor(string: str) -> str:
    return string.replace("/", ".").replace("\\", ".").replace(".py", "")
 
 
pytest_plugins = [
    refactor(fixture) for fixture in glob("tests/**/fixtures/*.py", recursive=True) if "__" not in fixture
]


  • open/conftest.py.txt
  • 마지막으로 수정됨: 2021/04/12 15:38
  • 저자 127.0.0.1