Skip to content

Commit ca1fb29

Browse files
Merge pull request #33 from neo4j-labs/feat/testing-new-driver
Checking PR #31 on our develop
2 parents f78e5c9 + 2215fc0 commit ca1fb29

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Diff for: rdflib_neo4j/Neo4jStore.py

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ def __init__(self, config: Neo4jStoreConfig, neo4j_driver: Driver = None):
2323
self.driver = neo4j_driver
2424
self.session = None
2525
self.config = config
26+
27+
# Check that either driver or credentials are provided
2628
if not neo4j_driver:
2729
check_auth_data(config.auth_data)
2830
elif config.auth_data:

Diff for: rdflib_neo4j/config/Neo4jStoreConfig.py

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
PrefixNotFoundException,
66
HANDLE_VOCAB_URI_STRATEGY, HANDLE_MULTIVAL_STRATEGY
77
)
8-
from rdflib_neo4j.config.utils import check_auth_data
9-
108

119
class Neo4jStoreConfig:
1210
"""

Diff for: test/integration/store_initialization_test.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
def test_initialize_store_with_credentials(neo4j_connection_parameters, neo4j_driver):
11-
11+
""" Test that we can initialize a store by passing the credentials config. """
1212
auth_data = neo4j_connection_parameters
1313

1414
config = Neo4jStoreConfig(auth_data=auth_data,
@@ -27,7 +27,7 @@ def test_initialize_store_with_credentials(neo4j_connection_parameters, neo4j_dr
2727

2828

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

4545

4646
def test_initialize_with_both_credentials_and_driver_should_fail(neo4j_connection_parameters, neo4j_driver):
47-
47+
""" Test that we can't initialize a store with both credentials and a driver. """
4848
config = Neo4jStoreConfig(auth_data=neo4j_connection_parameters,
4949
custom_prefixes={},
5050
custom_mappings=[],

0 commit comments

Comments
 (0)