init home-assistant

This commit is contained in:
2026-11-19 15:15:32 -05:00
parent 2e81d9d300
commit feec6ef9fb
19230 changed files with 3335526 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
"""Tests for our aiohttp mocker."""
import pytest
from .aiohttp import AiohttpClientMocker
async def test_matching_url() -> None:
"""Test we can match urls."""
mocker = AiohttpClientMocker()
mocker.get("http://example.com")
await mocker.match_request("get", "http://example.com/")
mocker.clear_requests()
with pytest.raises(AssertionError):
await mocker.match_request("get", "http://example.com/")
mocker.clear_requests()
mocker.get("http://example.com?a=1")
await mocker.match_request("get", "http://example.com/", params={"a": 1, "b": 2})