Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix sanity unreachable code #548

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/unit/module_utils/test_hcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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(),
Expand Down Expand Up @@ -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(),
Expand Down