We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 738478a commit f743defCopy full SHA for f743def
tests/unit/test_driver.py
@@ -124,7 +124,10 @@ def test_driver_trust_config_error(
124
def test_driver_opens_write_session_by_default(uri, mocker):
125
driver = GraphDatabase.driver(uri)
126
from neo4j.work.transaction import Transaction
127
- with driver.session() as session:
+ # we set a specific db, because else the driver would try to fetch a RT
128
+ # to get hold of the actual home database (which won't work in this
129
+ # unittest)
130
+ with driver.session(database="foobar") as session:
131
acquire_mock = mocker.patch.object(session._pool, "acquire",
132
autospec=True)
133
tx_begin_mock = mocker.patch.object(Transaction, "_begin",
0 commit comments