Skip to content

Commit 4df66b2

Browse files
authored
Add 5.0 compatibility to integration tests. (#473)
3rd time is the charm! Amends: - #472 - #471
1 parent 7b1225a commit 4df66b2

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

tests/neo4j/suites.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@
6161
#######################
6262
suite_4x4 = suite_4x3
6363

64+
#######################
65+
# Suite for Neo4j 5.0 #
66+
#######################
67+
suite_5x0 = suite_4x4
68+
6469
if __name__ == "__main__":
6570
if len(sys.argv) < 2:
6671
print("Missing suite name parameter")
@@ -79,6 +84,8 @@
7984
suite = suite_4x3
8085
elif name == "4.4":
8186
suite = suite_4x4
87+
elif name == "5.0":
88+
suite = suite_5x0
8289

8390
if not suite:
8491
print("Unknown suite name: " + name)

tests/neo4j/test_direct_driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def work(tx):
8383
result = self._driver.supports_multi_db()
8484
server_version = tuple(map(int, get_server_info().version.split(".")))
8585

86-
if server_version in ((4, 0), (4, 1), (4, 2), (4, 3), (4, 4)):
86+
if server_version in ((4, 0), (4, 1), (4, 2), (4, 3), (4, 4), (5, 0)):
8787
self.assertTrue(result)
8888
# This is the default database name if not set explicitly on the
8989
# Neo4j Server

0 commit comments

Comments
 (0)