def test_c_mark(self): add(self.bangumi_name_1, 0) r = mark(self.bangumi_name_1, 1) assert r["status"] == "success", r["message"] r = mark(self.bangumi_name_1, None) assert r["status"] == "info", r["message"] r = mark(self.bangumi_name_2, 0) assert r["status"] == "error", r["message"]
def mark_wrapper(ret): result = mark(name=ret.name, episode=ret.episode) globals()["print_{}".format(result['status'])](result['message'])
def mark_wrapper(ret): result = mark(name=ret.name, episode=ret.episode) globals()["print_{}".format(result['status'])](result['message'])
def mark_wrapper(ret: Any) -> None: result = mark(name=ret.name, episode=ret.episode) globals()["print_{}".format(result["status"])](result["message"])