From df53c5055438b412ef626eea2c94c2ba8af0f7ed Mon Sep 17 00:00:00 2001 From: Caohongtao Date: Wed, 11 Sep 2024 08:05:17 +0000 Subject: [PATCH] Annotation normalization Annotation normalization Signed-off-by: Caohongtao --- method/assert_method.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/method/assert_method.py b/method/assert_method.py index b3a43aa..4b7d61b 100644 --- a/method/assert_method.py +++ b/method/assert_method.py @@ -28,13 +28,13 @@ class AssertMethod(Assert): @staticmethod def assert_equal(expect, actual): - """判断预期值<{{expect}>与实际值<{{actual}>相等""" + """判断预期值<{{expect}}>与实际值<{{actual}}>相等""" if expect != actual: raise AssertionError(f"预期值<{expect}>与实际值<{actual}>不相等") @staticmethod def assert_not_equal(expect, actual): - """判断预期值<{{expect}>与实际值<{{actual}>不相等""" + """判断预期值<{{expect}}>与实际值<{{actual}}>不相等""" if expect == actual: raise AssertionError(f"预期值<{expect}>与实际值<{actual}>相等") @@ -66,13 +66,13 @@ class AssertMethod(Assert): @staticmethod def assert_true(expect): - """断言{{expect}}结果为真""" + """断言<{{expect}}>结果为真""" if not expect: raise AssertionError(f"<{expect}>不为真") @staticmethod def assert_false(expect): - """断言{{expect}}结果为假""" + """断言<{{expect}}>结果为假""" if expect: raise AssertionError(f"<{expect}>不为假") -- Gitee