

def setUp(self):
    self.service = self.get_exeuctor_service()
    self.service.executor_factory = PrinterExecutor
    self.edges = self.get_edges()
    self.nodes = set()
    self.target_map = {
        
    }
    for (p, c) in self.edges:
        self.nodes.add(p)
        self.nodes.add(c)
    self.targets = []
    for n in self.nodes:
        target = MockTarget(n)
        self.target_map[n] = target
        self.targets.append(target)
    for (p, c) in self.edges:
        self.target_map[c].deps.append(self.target_map[p])

dataset/ETHPy150Open bloomreach/briefly/tests/briefly/test_core.py TestCaseWithSetup.setUp/original