momegas commited on
Commit
bfff554
β€’
1 Parent(s): ac5596d

πŸ‘€ Fix tests

Browse files
.github/workflows/python-package.yml CHANGED
@@ -28,4 +28,4 @@ jobs:
28
  - name: Test with pytest
29
  run: |
30
  export OPENAI_API_KEY=${{secrets.OPENAI_API_KEY}}
31
- pytest
 
28
  - name: Test with pytest
29
  run: |
30
  export OPENAI_API_KEY=${{secrets.OPENAI_API_KEY}}
31
+ pytest ./tests
Makefile CHANGED
@@ -9,7 +9,7 @@ install:
9
  $(PIP) install -r requirements.txt
10
 
11
  test:
12
- $(PYTHON) -m pytest
13
 
14
  clean:
15
  rm -rf build dist *.egg-info .pytest_cache ./**/__pycache__
 
9
  $(PIP) install -r requirements.txt
10
 
11
  test:
12
+ $(PYTHON) -m pytest ./tests
13
 
14
  clean:
15
  rm -rf build dist *.egg-info .pytest_cache ./**/__pycache__
tests/test_bots.py CHANGED
@@ -3,9 +3,7 @@ import tempfile
3
  from megabots import bot
4
  import pickle
5
  from langchain.vectorstores.faiss import FAISS
6
- from dotenv import load_dotenv
7
 
8
- load_dotenv()
9
 
10
  # Define test data
11
  test_directory = "./examples/files"
 
3
  from megabots import bot
4
  import pickle
5
  from langchain.vectorstores.faiss import FAISS
 
6
 
 
7
 
8
  # Define test data
9
  test_directory = "./examples/files"