Ejemplo n.º 1
0
def test_repo_tools():
    """ Test the repo_tools function """
    instance = MenuHelper()
    status = instance.repo_tools('https://github.com/cyberreboot/vent',
                                 'master', 'HEAD')
    assert isinstance(status, tuple)
    assert status[0] == True
Ejemplo n.º 2
0
 def repo_tools(self, branch):
     """ Set the appropriate repo dir and get the tools available of it """
     tools = []
     m_helper = MenuHelper()
     repo = self.parentApp.repo_value['repo']
     version = self.parentApp.repo_value['versions'][branch]
     status = m_helper.repo_tools(repo, branch, version)
     if status[0]:
         r_tools = status[1]
         for tool in r_tools:
             tools.append(tool[0])
     return tools