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

Method test_15_random_ops

tests/flow/test_effects.py:813–837  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

811 self.env.assertFalse(self.monitor_containt_effect())
812
813 def test_15_random_ops(self):
814 # update graph key
815 global GRAPH_ID
816 GRAPH_ID = "random_graph"
817
818 # update graph objects to use new graph key
819 self.master_graph = Graph(self.master, GRAPH_ID)
820 self.replica_graph = Graph(self.replica, GRAPH_ID)
821
822 # enable effects replication
823 self.effects_enable()
824
825 from random_graph import create_random_schema, create_random_graph, run_random_graph_ops, ALL_OPS
826 nodes, edges = create_random_schema()
827 create_random_graph(self.master_graph, nodes, edges)
828
829 # wait for replica and master to sync
830 self.master.wait(1, 0)
831 self.assert_graph_eq()
832
833 run_random_graph_ops(self.master_graph, nodes, edges, ALL_OPS)
834
835 # wait for replica and master to sync
836 self.master.wait(1, 0)
837 self.assert_graph_eq()
838

Callers

nothing calls this directly

Calls 6

effects_enableMethod · 0.95
assert_graph_eqMethod · 0.95
create_random_schemaFunction · 0.90
create_random_graphFunction · 0.90
run_random_graph_opsFunction · 0.90
GraphClass · 0.85

Tested by

no test coverage detected