Ejemplo n.º 1
0
    def handle_noargs(self, **options):
        header = ""
        projects = []
        if options.get("local", False):
            header = "Local projects:"
            projects = list_projects_local()
        else:
            header = "Projects in DB:"
            projects = list_projects_db()

        print(header)
        for project in projects:
            print("  " + project)
Ejemplo n.º 2
0
    def handle_noargs(self, **options):
        header = ''
        projects = []
        if options.get('local', False):
            header = 'Local projects:'
            projects = list_projects_local()
        else:
            header = 'Projects in DB:'
            projects = list_projects_db()

        print(header)
        for project in projects:
            print('  ' + project)
Ejemplo n.º 3
0
 def testListProjectsLocal(self):
     create_project_local("project1")
     create_project_local("project2")
     self.assertEqual(2, len(list_projects_local()))
Ejemplo n.º 4
0
 def testListProjectsLocal(self):
     create_project_local('project1')
     create_project_local('project2')
     self.assertEqual(2, len(list_projects_local()))