diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 56d2da9..a6ed832 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,4 +1,4 @@ -name: Codepropertygraphs Test +name: CPG Test on: [push, pull_request] diff --git a/codepropertygraph/tests/test_connection.py b/codepropertygraph/tests/test_connection.py index 2c7090e..947158a 100644 --- a/codepropertygraph/tests/test_connection.py +++ b/codepropertygraph/tests/test_connection.py @@ -1,7 +1,9 @@ -import os +import os, sys from dotenv import load_dotenv from unittest.mock import patch, MagicMock from neo4j.exceptions import ServiceUnavailable + +sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from codepropertygraph.engine import get_neo4j_connection # Load environment variables from .env file diff --git a/requirements.txt b/requirements.txt index 5b042c6..f9b1860 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,6 @@ backports.tarfile==1.2.0 certifi==2024.6.2 charset-normalizer==3.3.2 --e git+ssh://git@github.com/markgacoka/codepropertygraph.git@37f93ed17a6baaa7b484849afba86b63c7874982#egg=codepropertygraph&subdirectory=codepropertygraph docutils==0.21.2 exceptiongroup==1.2.1 idna==3.7