def run_tests(self, args): print "for '{}'...{}".format(args.project, PYBRAT_SHGRAY) if not args.brew: pre_venv_d = get_venv_dict({'pybrat':args.project}) testout = self.run_subcmd(args) if args.verbose > 1: print testout.getvalue() if args.brew: if args.project not in get_venv_dict({'brew':True}).keys(): if args.verbose: print "==> '{}' removed.".format(args.project) return True else: return False post_venv_d = get_venv_dict({'pybrat':args.project}) for vname in pre_venv_d.keys(): if vname not in post_venv_d.keys(): if args.verbose: print "==> '{}' removed.".format(vname) else: return False if args.project in get_project_list({'pybrat':True}).keys(): return False return True
def run_tests(self, args): print "for '{}'...{}".format(args.project, PYBRAT_SHGRAY) testout = self.run_subcmd(args) if args.verbose > 1: print testout.getvalue() if args.project in get_venv_dict({'brew':True}).keys(): if args.verbose: print "==> Found '{}' venv.".format(args.project) result = True else: result = False if not args.brew: if args.project in get_project_list({'pybrat':True}).keys(): if args.verbose: print "==> Found '{}' project.".format(args.project) else: result = False return result