Skip to content

Commit 32d7f9b

Browse files
committed
Full auth use in examples where driver is visible
1 parent 808cfa7 commit 32d7f9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/test_examples.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,19 @@ def test_configuration(self):
7676

7777
def test_tls_require_encryption(self):
7878
# tag::tls-require-encryption[]
79-
driver = GraphDatabase.driver("bolt://localhost", auth=auth_token, encrypted=True)
79+
driver = GraphDatabase.driver("bolt://localhost", auth=basic_auth("neo4j", "password"), encrypted=True)
8080
# end::tls-require-encryption[]
8181

8282
def test_tls_trust_on_first_use(self):
8383
# tag::tls-trust-on-first-use[]
84-
driver = GraphDatabase.driver("bolt://localhost", auth=auth_token, encrypted=True, trust=TRUST_ON_FIRST_USE)
84+
driver = GraphDatabase.driver("bolt://localhost", auth=basic_auth("neo4j", "password"), encrypted=True, trust=TRUST_ON_FIRST_USE)
8585
# end::tls-trust-on-first-use[]
8686
assert driver
8787

8888
@skip("testing verified certificates not yet supported ")
8989
def test_tls_signed(self):
9090
# tag::tls-signed[]
91-
driver = GraphDatabase.driver("bolt://localhost", auth=auth_token, encrypted=True, trust=TRUST_SIGNED_CERTIFICATES)
91+
driver = GraphDatabase.driver("bolt://localhost", auth=basic_auth("neo4j", "password"), encrypted=True, trust=TRUST_SIGNED_CERTIFICATES)
9292
# end::tls-signed[]
9393
assert driver
9494

0 commit comments

Comments
 (0)