Example #1
0
def cli_index(args):
    argdict = args.__dict__
    i = Index()
    if argdict["index_action"] == "list":
        i.list()
    elif argdict["index_action"] == "update":
        i.update()
    elif argdict["index_action"] == "generate":
        i.generate(argdict["location"])
    sys.exit(0)
Example #2
0
 def test_generate(self):
     self.tmpdir = tempfile.mkdtemp(prefix="atomicapp-generation-test", dir="/tmp")
     a = Index()
     a.generate("tests/units/cli/test_examples", os.path.join(self.tmpdir, "index.yaml"))
Example #3
0
 def test_list(self):
     a = Index()
     a.list()
Example #4
0
 def test_generate(self):
     self.tmpdir = tempfile.mkdtemp(prefix="atomicapp-generation-test",
                                    dir="/tmp")
     a = Index()
     a.generate("tests/units/cli/test_examples",
                os.path.join(self.tmpdir, "index.yaml"))
Example #5
0
 def test_list(self):
     a = Index()
     a.list()