def setUp(self): check_call(["git", "init", "testing_repo"]) os.chdir(os.path.abspath('testing_repo')) with open("hello", 'w+') as f: f.write("VERSION = 0.0.1") check_call(["git", "add", "hello"]) check_call(["git", "commit", "-m", "Initial Commit"]) check_call(["git", "tag", "0.0.1"]) self.git = dvcs.Git() self.git.style = utils.import_style("Triplet")
def get_style_class_from_str(self, style): return import_style(style)