MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / test10_delete_edge_effect

Method test10_delete_edge_effect

tests/flow/test_effects.py:670–685  ·  view source on GitHub ↗
(self, expect_effect=True)

Source from the content-addressed store, hash-verified

668 self.assert_graph_eq()
669
670 def test10_delete_edge_effect(self, expect_effect=True):
671 # test the deletion of an edge by an effect
672
673 # no leftovers from previous test
674 self.env.assertFalse(self.monitor_containt_effect())
675
676 q = """MATCH ()-[e]->() WITH e LIMIT 1 DELETE e"""
677 res = self.query_master_and_wait(q)
678 self.env.assertEquals(res.relationships_deleted, 1)
679
680 if(expect_effect):
681 self.wait_for_effect()
682 else:
683 self.wait_for_query()
684
685 self.assert_graph_eq()
686
687 def test11_delete_node_effect(self, expect_effect=True):
688 # test the deletion of a node by an effect

Callers 1

Calls 5

query_master_and_waitMethod · 0.95
wait_for_effectMethod · 0.95
wait_for_queryMethod · 0.95
assert_graph_eqMethod · 0.95

Tested by

no test coverage detected