3232# (* "good reason" is defined as knowing what you are doing)
3333
3434
35- auth_token = basic_auth ("neo4j" , "password " )
35+ auth_token = basic_auth ("neo4j" , "neo4j " )
3636
3737
3838class FreshDatabaseTestCase (ServerTestCase ):
@@ -48,7 +48,7 @@ class MinimalWorkingExampleTestCase(FreshDatabaseTestCase):
4848
4949 def test_minimal_working_example (self ):
5050 # tag::minimal-example[]
51- driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "password " ))
51+ driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "neo4j " ))
5252 session = driver .session ()
5353
5454 session .run ("CREATE (a:Person {name:'Arthur', title:'King'})" )
@@ -65,33 +65,33 @@ class ExamplesTestCase(FreshDatabaseTestCase):
6565
6666 def test_construct_driver (self ):
6767 # tag::construct-driver[]
68- driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "password " ))
68+ driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "neo4j " ))
6969 # end::construct-driver[]
7070 return driver
7171
7272 def test_configuration (self ):
7373 # tag::configuration[]
74- driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "password " ), max_pool_size = 10 )
74+ driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "neo4j " ), max_pool_size = 10 )
7575 # end::configuration[]
7676 return driver
7777
7878 @skipUnless (SSL_AVAILABLE , "Bolt over TLS is not supported by this version of Python" )
7979 def test_tls_require_encryption (self ):
8080 # tag::tls-require-encryption[]
81- driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "password " ), encrypted = True )
81+ driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "neo4j " ), encrypted = True )
8282 # end::tls-require-encryption[]
8383
8484 @skipUnless (SSL_AVAILABLE , "Bolt over TLS is not supported by this version of Python" )
8585 def test_tls_trust_on_first_use (self ):
8686 # tag::tls-trust-on-first-use[]
87- driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "password " ), encrypted = True , trust = TRUST_ON_FIRST_USE )
87+ driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "neo4j " ), encrypted = True , trust = TRUST_ON_FIRST_USE )
8888 # end::tls-trust-on-first-use[]
8989 assert driver
9090
9191 @skip ("testing verified certificates not yet supported " )
9292 def test_tls_signed (self ):
9393 # tag::tls-signed[]
94- driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "password " ), encrypted = True , trust = TRUST_SIGNED_CERTIFICATES )
94+ driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "neo4j " ), encrypted = True , trust = TRUST_SIGNED_CERTIFICATES )
9595 # end::tls-signed[]
9696 assert driver
9797
0 commit comments