summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/test
diff options
context:
space:
mode:
authorLuke Meyer <lmeyer@redhat.com>2017-06-16 17:24:01 -0400
committerLuke Meyer <lmeyer@redhat.com>2017-07-25 13:23:58 -0400
commit2a0936b291992ba1b7343680aec915df0c29892c (patch)
tree22fe8d099f5a1bc11a35ff1cdf0c05f9cef12053 /roles/openshift_health_checker/test
parent3f3f87b7982b570ffb976865e3eace2d36960bd4 (diff)
downloadopenshift-2a0936b291992ba1b7343680aec915df0c29892c.tar.gz
openshift-2a0936b291992ba1b7343680aec915df0c29892c.tar.bz2
openshift-2a0936b291992ba1b7343680aec915df0c29892c.tar.xz
openshift-2a0936b291992ba1b7343680aec915df0c29892c.zip
openshift_checks: get rid of deprecated module_executor
Diffstat (limited to 'roles/openshift_health_checker/test')
-rw-r--r--roles/openshift_health_checker/test/openshift_check_test.py18
1 files changed, 2 insertions, 16 deletions
diff --git a/roles/openshift_health_checker/test/openshift_check_test.py b/roles/openshift_health_checker/test/openshift_check_test.py
index e3153979c..c6169ca22 100644
--- a/roles/openshift_health_checker/test/openshift_check_test.py
+++ b/roles/openshift_health_checker/test/openshift_check_test.py
@@ -30,32 +30,18 @@ def test_OpenShiftCheck_init():
# initialization requires at least one argument (apart from self)
with pytest.raises(TypeError) as excinfo:
- TestCheck()
+ TestCheck().execute_module("foo")
assert 'execute_module' in str(excinfo.value)
- assert 'module_executor' in str(excinfo.value)
execute_module = object()
# initialize with positional argument
check = TestCheck(execute_module)
- # new recommended name
assert check.execute_module == execute_module
- # deprecated attribute name
- assert check.module_executor == execute_module
- # initialize with keyword argument, recommended name
+ # initialize with keyword argument
check = TestCheck(execute_module=execute_module)
- # new recommended name
assert check.execute_module == execute_module
- # deprecated attribute name
- assert check.module_executor == execute_module
-
- # initialize with keyword argument, deprecated name
- check = TestCheck(module_executor=execute_module)
- # new recommended name
- assert check.execute_module == execute_module
- # deprecated attribute name
- assert check.module_executor == execute_module
def test_subclasses():