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

Method setUp

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

Source from the content-addressed store, hash-verified

17 self.env = Env(decodeResponses=True)
18
19 def setUp(self):
20 global imdb
21 global queries
22 global redis_graph
23 self.redis_con = self.env.getConnection()
24 redis_graph = Graph(self.redis_con, imdb_utils.graph_name)
25 actors, movies = imdb_utils.populate_graph(self.redis_con, redis_graph)
26 imdb = imdb_queries.IMDBQueries(actors, movies)
27 queries = imdb.queries()
28
29 def tearDown(self):
30 self.env.cmd('flushall')

Callers

nothing calls this directly

Calls 3

queriesMethod · 0.95
GraphClass · 0.85
populate_graphMethod · 0.45

Tested by

no test coverage detected