@@ -30,7 +30,7 @@ class FreshDatabaseTestCase(ServerTestCase):
3030
3131 def setUp (self ):
3232 ServerTestCase .setUp (self )
33- session = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "neo4j " )).session ()
33+ session = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "password " )).session ()
3434 session .run ("MATCH (n) DETACH DELETE n" )
3535 session .close ()
3636
@@ -39,7 +39,7 @@ class MinimalWorkingExampleTestCase(FreshDatabaseTestCase):
3939
4040 def test_minimal_working_example (self ):
4141 # tag::minimal-example[]
42- driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "neo4j " ))
42+ driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "password " ))
4343 session = driver .session ()
4444
4545 session .run ("CREATE (neo:Person {name:'Neo', age:23})" )
@@ -56,7 +56,7 @@ class ExamplesTestCase(FreshDatabaseTestCase):
5656
5757 def test_construct_driver (self ):
5858 # tag::construct-driver[]
59- driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "neo4j " ))
59+ driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "password " ))
6060 # end::construct-driver[]
6161 return driver
6262
@@ -85,23 +85,23 @@ def test_tls_signed(self):
8585 # end::tls-signed[]
8686
8787 def test_statement (self ):
88- driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "neo4j " ))
88+ driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "password " ))
8989 session = driver .session ()
9090 # tag::statement[]
9191 session .run ("CREATE (person:Person {name: {name}})" , {"name" : "Neo" }).close ()
9292 # end::statement[]
9393 session .close ()
9494
9595 def test_statement_without_parameters (self ):
96- driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "neo4j " ))
96+ driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "password " ))
9797 session = driver .session ()
9898 # tag::statement-without-parameters[]
9999 session .run ("CREATE (person:Person {name: 'Neo'})" ).close ()
100100 # end::statement-without-parameters[]
101101 session .close ()
102102
103103 def test_result_cursor (self ):
104- driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "neo4j " ))
104+ driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "password " ))
105105 session = driver .session ()
106106 # tag::result-cursor[]
107107 search_term = "hammer"
@@ -114,7 +114,7 @@ def test_result_cursor(self):
114114 session .close ()
115115
116116 def test_cursor_nesting (self ):
117- driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "neo4j " ))
117+ driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "password " ))
118118 session = driver .session ()
119119 # tag::retain-result-query[]
120120 result = session .run ("MATCH (person:Person) WHERE person.dept = {dept} "
@@ -127,7 +127,7 @@ def test_cursor_nesting(self):
127127 session .close ()
128128
129129 def test_result_retention (self ):
130- driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "neo4j " ))
130+ driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "password " ))
131131 session = driver .session ()
132132 # tag::retain-result-process[]
133133 result = session .run ("MATCH (person:Person) WHERE person.dept = {dept} "
@@ -142,7 +142,7 @@ def test_result_retention(self):
142142 session .close ()
143143
144144 def test_transaction_commit (self ):
145- driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "neo4j " ))
145+ driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "password " ))
146146 session = driver .session ()
147147 # tag::transaction-commit[]
148148 tx = session .begin_transaction ()
@@ -156,7 +156,7 @@ def test_transaction_commit(self):
156156 session .close ()
157157
158158 def test_transaction_rollback (self ):
159- driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "neo4j " ))
159+ driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "password " ))
160160 session = driver .session ()
161161 # tag::transaction-rollback[]
162162 tx = session .begin_transaction ()
@@ -170,7 +170,7 @@ def test_transaction_rollback(self):
170170 session .close ()
171171
172172 def test_result_summary_query_profile (self ):
173- driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "neo4j " ))
173+ driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "password " ))
174174 session = driver .session ()
175175 # tag::result-summary-query-profile[]
176176 result = session .run ("PROFILE MATCH (p:Person {name: {name}}) "
@@ -183,7 +183,7 @@ def test_result_summary_query_profile(self):
183183 session .close ()
184184
185185 def test_result_summary_notifications (self ):
186- driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "neo4j " ))
186+ driver = GraphDatabase .driver ("bolt://localhost" , auth = basic_auth ("neo4j" , "password " ))
187187 session = driver .session ()
188188 # tag::result-summary-notifications[]
189189 result = session .run ("EXPLAIN MATCH (a), (b) RETURN a,b" )
0 commit comments