Skip to content

Commit

Permalink
Merge pull request #33 from neo4j-labs/feat/testing-new-driver
Browse files Browse the repository at this point in the history
Checking PR #31 on our develop
  • Loading branch information
alfredorubin96 authored Jul 11, 2024
2 parents f78e5c9 + 2215fc0 commit ca1fb29
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions rdflib_neo4j/Neo4jStore.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def __init__(self, config: Neo4jStoreConfig, neo4j_driver: Driver = None):
self.driver = neo4j_driver
self.session = None
self.config = config

# Check that either driver or credentials are provided
if not neo4j_driver:
check_auth_data(config.auth_data)
elif config.auth_data:
Expand Down
2 changes: 0 additions & 2 deletions rdflib_neo4j/config/Neo4jStoreConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
PrefixNotFoundException,
HANDLE_VOCAB_URI_STRATEGY, HANDLE_MULTIVAL_STRATEGY
)
from rdflib_neo4j.config.utils import check_auth_data


class Neo4jStoreConfig:
"""
Expand Down
6 changes: 3 additions & 3 deletions test/integration/store_initialization_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


def test_initialize_store_with_credentials(neo4j_connection_parameters, neo4j_driver):

""" Test that we can initialize a store by passing the credentials config. """
auth_data = neo4j_connection_parameters

config = Neo4jStoreConfig(auth_data=auth_data,
Expand All @@ -27,7 +27,7 @@ def test_initialize_store_with_credentials(neo4j_connection_parameters, neo4j_dr


def test_initialize_store_with_driver(neo4j_driver):

""" Test that we can initialize a store with a driver. """
config = Neo4jStoreConfig(auth_data=None,
custom_prefixes={},
custom_mappings=[],
Expand All @@ -44,7 +44,7 @@ def test_initialize_store_with_driver(neo4j_driver):


def test_initialize_with_both_credentials_and_driver_should_fail(neo4j_connection_parameters, neo4j_driver):

""" Test that we can't initialize a store with both credentials and a driver. """
config = Neo4jStoreConfig(auth_data=neo4j_connection_parameters,
custom_prefixes={},
custom_mappings=[],
Expand Down

0 comments on commit ca1fb29

Please sign in to comment.