From cb03f49df78d8535850a35a8951a9d6f2944efa6 Mon Sep 17 00:00:00 2001 From: "Jonas L." Date: Fri, 9 Aug 2024 09:39:05 +0200 Subject: [PATCH] chore: fix sanity unreachable code (#548) --- tests/unit/module_utils/test_hcloud.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/module_utils/test_hcloud.py b/tests/unit/module_utils/test_hcloud.py index 196ca87..86601e7 100644 --- a/tests/unit/module_utils/test_hcloud.py +++ b/tests/unit/module_utils/test_hcloud.py @@ -33,7 +33,7 @@ def test_hcloud_fail_json_hcloud(module): ) except APIException as exception: hcloud.fail_json_hcloud(exception) - + # pylint: disable=unreachable module.fail_json.assert_called_with( msg="invalid input in fields 'server', 'home_location' (invalid_input)", exception=traceback.format_exc(), @@ -66,7 +66,7 @@ def test_hcloud_fail_json_hcloud(module): ) except ActionException as exception: hcloud.fail_json_hcloud(exception) - + # pylint: disable=unreachable module.fail_json.assert_called_with( msg="The pending action failed: Server does not exist anymore", exception=traceback.format_exc(), @@ -101,7 +101,7 @@ def test_hcloud_fail_json_hcloud(module): ) except ActionException as exception: hcloud.fail_json_hcloud(exception) - + # pylint: disable=unreachable module.fail_json.assert_called_with( msg="The pending action timed out", exception=traceback.format_exc(),