Closed jy1909 closed 11 months ago
I added these lines of code (see PR #21) on the top of tests/test_util.py to properly import the functions we write in src/util.py.
tests/test_util.py
src/util.py
import sys sys.path.append("../") from src.util import *
To use Pytest, cd to the tests folder and run pytest from the terminal. This runs all your tests in test_util.py.
cd
tests
pytest
test_util.py
do we need to install pytest in the environment?
Yes, we do. We should probably add pytest=7.4.3 to environment.yml as well.
pytest=7.4.3
environment.yml
I added these lines of code (see PR #21) on the top of
tests/test_util.py
to properly import the functions we write insrc/util.py
.To use Pytest,
cd
to thetests
folder and runpytest
from the terminal. This runs all your tests intest_util.py
.