summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzshi <zshi@redhat.com>2016-10-20 15:42:35 +0800
committerzshi <zshi@redhat.com>2016-10-20 22:43:53 +0800
commit16bbb97bc3515a62443cb66a8954ac8eb1750ad8 (patch)
tree5dff53f1d03e91e4dcbf92b402940bac0307639d
parent9b473f90a40cea5671f52665de694d58f7b2a1bf (diff)
dovetail tool : add @classmethod to post_condition_cls
JIRA: DOVETAIL-39 Turn post_condition_cls to classmethod function which will be consistent with pre_condition_cls Change-Id: If8457035493f2ed93bdae5be5f22a57255b2c474 Signed-off-by: zshi <zshi@redhat.com>
-rw-r--r--dovetail/testcase.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/dovetail/testcase.py b/dovetail/testcase.py
index 51714e37..d505420a 100644
--- a/dovetail/testcase.py
+++ b/dovetail/testcase.py
@@ -111,6 +111,7 @@ class Testcase:
def pre_condition_cls(cls, script_type):
return dovetail_config[script_type]['pre_condition']
+ @classmethod
def post_condition_cls(cls, script_type):
return dovetail_config[script_type]['post_condition']