ansible-collection-hetzner-.../tests/unit/conftest.py
Jonas L e781f48f15
chore: add fail_on_invalid_params helper (#470)
##### SUMMARY

Add a small helper to validate parameters while executing the module.

---------

Co-authored-by: Justin Jeffery <justin.jeffery@ipfabric.io>
2024-03-11 18:03:26 +01:00

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