UBC-MDS / group21_top-three-predictors-of-term-deposit-subscriptions

https://ubc-mds.github.io/group21_top-three-predictors-of-term-deposit-subscriptions/
Other
0 stars 1 forks source link

FYI on Using Pytest #19

Closed jy1909 closed 11 months ago

jy1909 commented 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.

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.

JohnShiuMK commented 11 months ago

do we need to install pytest in the environment?

jy1909 commented 11 months ago

Yes, we do. We should probably add pytest=7.4.3 to environment.yml as well.