示例#1
0
 def testItShouldBuildDroidhgModulesPathWithTwoAdditionalRepository(self):
     Configuration._Configuration__config = self.mockConfigWithRepos(['/usr/local/mercury/modules', '/tmp/modules'])
     
     assert Repository.droidhg_modules_path() == "/usr/local/mercury/modules:/tmp/modules"
示例#2
0
 def testItShouldBuildDroidhgModulesPathWithoutAConfigFile(self):
     Configuration._Configuration__config = self.mockConfigWithoutRepos()
     
     assert Repository.droidhg_modules_path() == ""
示例#3
0
 def testItShouldBuildDroidhgModulesPathAsDefault(self):
     Configuration._Configuration__config = self.mockConfigWithRepos([])
     
     assert Repository.droidhg_modules_path() == ""