Skip to content

Commit fe66a03

Browse files
committed
Close GDS object
1 parent 47c27e1 commit fe66a03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graphdatascience/tests/integration/test_database_ops.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def test_init_without_neo4j_db(runner: Neo4jQueryRunner) -> None:
2323
runner.run_cypher("DROP DATABASE $dbName WAIT", {"dbName": default_database})
2424

2525
try:
26-
_ = GraphDataScience(URI, AUTH, database=MY_DB_NAME)
26+
gds = GraphDataScience(URI, AUTH, database=MY_DB_NAME)
27+
gds.close()
2728
finally:
2829
runner.run_cypher("CREATE DATABASE $dbName WAIT", {"dbName": default_database}, database=MY_DB_NAME)
2930
runner.run_cypher("DROP DATABASE $dbName WAIT", {"dbName": MY_DB_NAME})

0 commit comments

Comments
 (0)