mirror of
https://github.com/ansible-collections/hetzner.hcloud
synced 2024-11-10 06:34:13 +00:00
chore: fix sanity unreachable code (#548)
This commit is contained in:
parent
04a45bd92c
commit
cb03f49df7
1 changed files with 3 additions and 3 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue