Skip to content

Commit

Permalink
test: fix AnsibleHCloud module unit tests (#337)
Browse files Browse the repository at this point in the history
##### SUMMARY

We had a race condition between 2 Pull Requests (#336 and #325) and
everything didn't go through the test pipeline. Fixing it now.
  • Loading branch information
jooola authored Sep 26, 2023
1 parent 9a44bc2 commit f47e49c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/module_utils/test_hcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def test_hcloud_fail_json_hcloud():
"api_token": "fake_token",
"endpoint": "https://api.hetzner.cloud/v1",
}

hcloud = AnsibleHCloud(module, "hcloud_test")
AnsibleHCloud.represent = "hcloud_test"
hcloud = AnsibleHCloud(module)

try:
raise APIException(
Expand Down

0 comments on commit f47e49c

Please sign in to comment.