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

Method test09_remove_labels_effect

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

Source from the content-addressed store, hash-verified

651 self.assert_graph_eq()
652
653 def test09_remove_labels_effect(self, expect_effect=True):
654 # test the removal of a node label by an effect
655
656 # no leftovers from previous test
657 self.env.assertFalse(self.monitor_containt_effect())
658
659 q = """MATCH (n:C) REMOVE n:C RETURN n"""
660 res = self.query_master_and_wait(q)
661 self.env.assertEquals(res.labels_removed, 1)
662
663 if(expect_effect):
664 self.wait_for_effect()
665 else:
666 self.wait_for_query()
667
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

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