summaryrefslogtreecommitdiff
path: root/src-py/test_db_controller.py
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-09-28 14:14:35 +0300
committerLV-426 <lv-426@taproot.org.il>2014-09-28 14:14:35 +0300
commitdd1966972b41e7fd3492f8db07b286647f39b02d (patch)
tree4adf87beba32a42a560284996ee957f39aa3b7db /src-py/test_db_controller.py
parentbf219dfccb9fa786d4fd1e89013db2fd095190c0 (diff)
flush_db neo4j utility
Diffstat (limited to 'src-py/test_db_controller.py')
-rw-r--r--src-py/test_db_controller.py7
1 files changed, 7 insertions, 0 deletions
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