def setUp(self): super(TwoModulesTestCase, self).setUp() self.foo_branch = mock.Branch(os.path.join(self.config.buildroot, 'nonexistent-foo')) self.modules = [mock.MockModule('foo', branch=self.foo_branch), mock.MockModule('bar', branch=self.branch)] self.modules[0].config = self.config self.modules[1].config = self.config
def setUp(self): super(AutotoolsModTypeTestCase, self).setUp() module = mock.MockModule('foo', branch=self.branch) self.modules = [module] self.modules[0].config = self.config # replace clean method as it checks for Makefile existence self.modules[0].skip_clean = lambda x, y: False
def setUp(self): super(BuildPolicyTestCase, self).setUp() self.modules = [mock.MockModule('foo', branch=self.branch)] self.modules[0].config = self.config