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)
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"))
def test_list(self): a = Index() a.list()