Updates and fixes for the lib

This commit is contained in:
Vasilije 2024-05-25 13:51:38 +02:00
parent 1cac1a9c13
commit b49bad6db2
3 changed files with 13 additions and 0 deletions

View file

@ -72,6 +72,10 @@ jobs:
- name: Install dependencies
run: poetry install --no-interaction
- name: Run tests
run: poetry run pytest tests/
# - name: Build with Poetry
# run: poetry build
#

2
pytest.ini Normal file
View file

@ -0,0 +1,2 @@
[pytest]
addopts = tests/

7
tests/import_test.py Normal file
View file

@ -0,0 +1,7 @@
def test_import_cognee():
try:
import cognee
assert True # Pass the test if no error occurs
except ImportError as e:
assert False, f"Failed to import cognee: {e}"