Skip to content

Commit b778580

Browse files
committed
fix: pytest & imports
1 parent 478b133 commit b778580

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/evaluation_tests.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import unittest
2-
from evaluation import evaluation_function, Config
2+
try:
3+
from .evaluation import evaluation_function, Config
4+
except ImportError:
5+
from evaluation import evaluation_function, Config
36

47
class TestEvaluationFunction(unittest.TestCase):
58
"""

app/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ numpy
22
nltk==3.8.1
33
gensim
44
matplotlib
5+
pytest
56

67
# To run on cli: /Applications/Python\ 3.11/Install\ Certificates.command
78
# If SSL cert fail on Mac -> command above calls pip install --upgrade certifi -> then calling nltk.download works

0 commit comments

Comments
 (0)