Skip to content

Commit 1bb1368

Browse files
committed
Clean up.
1 parent b906fe5 commit 1bb1368

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/examples/hello_world_example.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,13 @@
2020

2121
# tag::hello-world-import[]
2222
from neo4j.v1 import GraphDatabase
23+
from base_application import BaseApplication
2324
# end::hello-world-import[]
2425

2526
# tag::hello-world[]
26-
class HelloWorldExample:
27+
class HelloWorldExample(BaseApplication):
2728
def __init__(self, uri, user, password):
28-
self._driver = GraphDatabase.driver(uri, auth=(user, password))
29-
30-
def close(self):
31-
self._driver.close()
29+
super().__init__(uri, user, password)
3230

3331
def _create_and_return_greeting(self, tx, message):
3432
record_list = list(tx.run("CREATE (a:Greeting) " +

0 commit comments

Comments
 (0)