Beispiel #1
0
 def test_is_wrap_project_name(self):
     projects = ['hello', 'world']
     for project in projects:
         with self.subTest(project=project):
             self.assertTrue(inventory.is_wrap_project_name(project))
     projects = ['meson', 'meson-ci']
     for project in projects:
         with self.subTest(project=project):
             self.assertFalse(inventory.is_wrap_project_name(project))
Beispiel #2
0
def _repository_list(org: Organization):
    return sorted([
        repo.name for repo in org().get_repos()
        if inventory.is_wrap_project_name(repo.name)
    ])
Beispiel #3
0
 def name_search(self, text):
     return sorted([
         repo.name for repo in self._organization.get_repos()
         if (inventory.is_wrap_project_name(repo.name)
             and repo.name.startswith(text))
     ])