From f47e49c132bec733d058ad18d0c299806007ed27 Mon Sep 17 00:00:00 2001 From: Jonas L Date: Tue, 26 Sep 2023 15:44:49 +0200 Subject: [PATCH] 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. --- tests/unit/module_utils/test_hcloud.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/module_utils/test_hcloud.py b/tests/unit/module_utils/test_hcloud.py index 8074e1bd..90c7416c 100644 --- a/tests/unit/module_utils/test_hcloud.py +++ b/tests/unit/module_utils/test_hcloud.py @@ -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(