Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking PR #31 on our develop #33

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading