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

Method setUp

tests/flow/test_index_scans.py:14–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12 self.env = Env(decodeResponses=True)
13
14 def setUp(self):
15 global redis_graph
16 redis_con = self.env.getConnection()
17 redis_graph = Graph(redis_con, social_utils.graph_name)
18 social_utils.populate_graph(redis_con, redis_graph)
19 self.build_indices()
20
21 def tearDown(self):
22 self.env.cmd('flushall')

Callers

nothing calls this directly

Calls 3

build_indicesMethod · 0.95
GraphClass · 0.85
populate_graphMethod · 0.45

Tested by

no test coverage detected