diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-10-05 20:55:55 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2014-10-05 20:55:55 +0200 |
| commit | 792d23d1670c8796ab2dad61922be7914e5349d0 (patch) | |
| tree | 7b4d77ef11ce2c128979da4c2a1a4238be5f2560 | |
| parent | 4c1e833bf2ae393b6f47bb9a363538119691230c (diff) | |
add node insertion to test setup
| -rw-r--r-- | src-py/test_db_controller.py | 5 |
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): """ |
