summaryrefslogtreecommitdiff
path: root/src-py/test_db_controller.py
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-10-05 20:55:55 +0200
committerLV-426 <lv-426@taproot.org.il>2014-10-05 20:55:55 +0200
commit792d23d1670c8796ab2dad61922be7914e5349d0 (patch)
tree7b4d77ef11ce2c128979da4c2a1a4238be5f2560 /src-py/test_db_controller.py
parent4c1e833bf2ae393b6f47bb9a363538119691230c (diff)
add node insertion to test setup
Diffstat (limited to 'src-py/test_db_controller.py')
-rw-r--r--src-py/test_db_controller.py5
1 files changed, 3 insertions, 2 deletions
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):
"""