diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-09-28 14:14:35 +0300 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2014-09-28 14:14:35 +0300 |
| commit | dd1966972b41e7fd3492f8db07b286647f39b02d (patch) | |
| tree | 4adf87beba32a42a560284996ee957f39aa3b7db | |
| parent | bf219dfccb9fa786d4fd1e89013db2fd095190c0 (diff) | |
flush_db neo4j utility
| -rw-r--r-- | src-py/test_db_controller.py | 7 |
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 |
