From 792d23d1670c8796ab2dad61922be7914e5349d0 Mon Sep 17 00:00:00 2001 From: LV-426 Date: Sun, 5 Oct 2014 20:55:55 +0200 Subject: add node insertion to test setup --- src-py/test_db_controller.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src-py/test_db_controller.py') diff --git a/src-py/test_db_controller.py b/src-py/test_db_controller.py index 83818ee3..3c8f4aff 100644 --- a/src-py/test_db_controller.py +++ b/src-py/test_db_controller.py @@ -27,13 +27,14 @@ class TestDBController(unittest.TestCase): def setUp(self): self.flush_db() + self.db_ctl.exec_op(dbc.DBO_add_node_set(self.n_map)) def flush_db(self): """ complete DB flush: remove all nodes & links """ - self.db_ctl.exec_cypher_query('match ()-[r]-() delete r') - self.db_ctl.exec_cypher_query('match (n) delete n') + self.db_ctl.exec_cypher_query('match (n) optional match (n)-[r]-() delete n,r') + def test_node_DB_id_lifecycle(self): """ -- cgit v1.3.1