From dd1966972b41e7fd3492f8db07b286647f39b02d Mon Sep 17 00:00:00 2001 From: LV-426 Date: Sun, 28 Sep 2014 14:14:35 +0300 Subject: flush_db neo4j utility --- src-py/test_db_controller.py | 7 +++++++ 1 file changed, 7 insertions(+) (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 57403e98..6e3a42ff 100644 --- a/src-py/test_db_controller.py +++ b/src-py/test_db_controller.py @@ -26,6 +26,13 @@ class TestDBController(unittest.TestCase): def setUp(self): self.flush_db() + 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') + def test_node_lifecycle(self): """ test node commit & load -- cgit v1.3.1