test: fix AnsibleHCloud module unit tests (#337)

##### 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.
This commit is contained in:
Jonas L 2023-09-26 15:44:49 +02:00 committed by GitHub
parent 9a44bc260f
commit f47e49c132
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(