run tests without [hf-embed] first

This commit is contained in:
Paul Gauthier 2024-07-12 07:31:21 +01:00
parent 48b3076e65
commit 37ebe83893
3 changed files with 8 additions and 2 deletions

View file

@ -37,4 +37,5 @@ jobs:
- name: Run tests - name: Run tests
run: | run: |
pytest pytest --ignore=aider/tests/test_help.py
pytest aider/tests/test_help.py

View file

@ -37,4 +37,6 @@ jobs:
- name: Run tests - name: Run tests
run: | run: |
pytest pytest --ignore=aider/tests/test_help.py
pytest aider/tests/test_help.py

View file

@ -4,6 +4,9 @@ from aider.help import Help
class TestHelp(unittest.TestCase): class TestHelp(unittest.TestCase):
def setUp(self):
Help(pip_install=True)
def test_init(self): def test_init(self):
help_inst = Help() help_inst = Help()
self.assertIsNotNone(help_inst.retriever) self.assertIsNotNone(help_inst.retriever)