from typing import Any
from unittest.mock import Mock
import requests
import json


def altinn_effect(*args: Any, **kwargs: Any) -> Mock:
    """Create mocked altinn response."""
    rsp = Mock(spec=requests.Response)
    rsp.status_code = 200
    rsp.raise_for_status.return_value = None
    rsp.json.return_value = json.loads("""[{"test": "test"}]""")
    return rsp