mirror of
https://github.com/ansible-collections/hetzner.hcloud
synced 2024-11-10 06:34:13 +00:00
e781f48f15
##### 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
|