Answers for "pytest run module"

4

install pytest

pip install pytest
Posted by: Guest on July-24-2020
0

pytest local modules

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
Posted by: Guest on March-28-2020

Python Answers by Framework

Browse Popular Code Answers by Language