mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 16:11:49 +00:00
##### SUMMARY Add a small helper to validate parameters while executing the module. --------- Co-authored-by: Justin Jeffery <justin.jeffery@ipfabric.io>
15 lines
269 B
Python
15 lines
269 B
Python
from __future__ import annotations
|
|
|
|
from unittest.mock import MagicMock
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture()
|
|
def module():
|
|
obj = MagicMock()
|
|
obj.params = {
|
|
"api_token": "dummy",
|
|
"api_endpoint": "https://api.hetzner.cloud/v1",
|
|
}
|
|
return obj
|