Skip to content

Commit

Permalink
Migrate JS datatypes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bigmontz committed May 18, 2021
1 parent 8d257c4 commit b724b19
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/neo4j/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,27 @@ def test_should_echo_nested_map(self):
self.create_driver_and_session()
self.verify_can_echo(types.CypherMap(test_maps))

def test_should_echo_list_of_maps(self):
test_list = [
types.CypherMap({
"a": types.CypherInt(1),
"b": types.CypherInt(2)
}),
types.CypherMap({
"c": types.CypherInt(3),
"d": types.CypherInt(4)
})
]
self.create_driver_and_session()
self.verify_can_echo(types.CypherList(test_list))

def test_should_echo_map_of_lists(self):
test_map = {
'a': types.CypherList([types.CypherInt(1)]),
'b': types.CypherList([types.CypherInt(2)])
}
self.create_driver_and_session()
self.verify_can_echo(types.CypherMap(test_map))

# def test_path(self):
# todo: need to implement the cypher path type to do this test.

0 comments on commit b724b19

Please sign in to comment.