aiohomematic-test-support 2025.12.54__tar.gz → 2026.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aiohomematic_test_support-2025.12.54/aiohomematic_test_support.egg-info → aiohomematic_test_support-2026.1.4}/PKG-INFO +1 -1
- {aiohomematic_test_support-2025.12.54 → aiohomematic_test_support-2026.1.4}/__init__.py +4 -4
- {aiohomematic_test_support-2025.12.54 → aiohomematic_test_support-2026.1.4/aiohomematic_test_support.egg-info}/PKG-INFO +1 -1
- {aiohomematic_test_support-2025.12.54 → aiohomematic_test_support-2026.1.4}/const.py +1 -1
- {aiohomematic_test_support-2025.12.54 → aiohomematic_test_support-2026.1.4}/event_capture.py +2 -2
- {aiohomematic_test_support-2025.12.54 → aiohomematic_test_support-2026.1.4}/event_mock.py +2 -2
- {aiohomematic_test_support-2025.12.54 → aiohomematic_test_support-2026.1.4}/factory.py +3 -3
- {aiohomematic_test_support-2025.12.54 → aiohomematic_test_support-2026.1.4}/helper.py +2 -2
- {aiohomematic_test_support-2025.12.54 → aiohomematic_test_support-2026.1.4}/mock.py +3 -4
- {aiohomematic_test_support-2025.12.54 → aiohomematic_test_support-2026.1.4}/MANIFEST.in +0 -0
- {aiohomematic_test_support-2025.12.54 → aiohomematic_test_support-2026.1.4}/README.md +0 -0
- {aiohomematic_test_support-2025.12.54 → aiohomematic_test_support-2026.1.4}/aiohomematic_test_support.egg-info/SOURCES.txt +0 -0
- {aiohomematic_test_support-2025.12.54 → aiohomematic_test_support-2026.1.4}/aiohomematic_test_support.egg-info/dependency_links.txt +0 -0
- {aiohomematic_test_support-2025.12.54 → aiohomematic_test_support-2026.1.4}/aiohomematic_test_support.egg-info/top_level.txt +0 -0
- {aiohomematic_test_support-2025.12.54 → aiohomematic_test_support-2026.1.4}/data/device_translation.json +0 -0
- {aiohomematic_test_support-2025.12.54 → aiohomematic_test_support-2026.1.4}/data/full_session_randomized_ccu.zip +0 -0
- {aiohomematic_test_support-2025.12.54 → aiohomematic_test_support-2026.1.4}/data/full_session_randomized_pydevccu.zip +0 -0
- {aiohomematic_test_support-2025.12.54 → aiohomematic_test_support-2026.1.4}/py.typed +0 -0
- {aiohomematic_test_support-2025.12.54 → aiohomematic_test_support-2026.1.4}/pyproject.toml +0 -0
- {aiohomematic_test_support-2025.12.54 → aiohomematic_test_support-2026.1.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aiohomematic-test-support
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2026.1.4
|
|
4
4
|
Summary: Support-only package for AioHomematic (tests/dev). Not part of production builds.
|
|
5
5
|
Author-email: SukramJ <sukramj@icloud.com>, Daniel Perna <danielperna84@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/SukramJ/aiohomematic
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# SPDX-License-Identifier: MIT
|
|
2
|
-
# Copyright (c) 2021-
|
|
2
|
+
# Copyright (c) 2021-2026
|
|
3
3
|
"""
|
|
4
4
|
Test support infrastructure for aiohomematic.
|
|
5
5
|
|
|
@@ -40,7 +40,7 @@ Using the factory to create a test central with session playback:
|
|
|
40
40
|
Using EventCapture for behavior-focused testing:
|
|
41
41
|
|
|
42
42
|
from aiohomematic_test_support.event_capture import EventCapture
|
|
43
|
-
from aiohomematic.central.
|
|
43
|
+
from aiohomematic.central.events import CircuitBreakerTrippedEvent
|
|
44
44
|
|
|
45
45
|
capture = EventCapture()
|
|
46
46
|
capture.subscribe_to(central.event_bus, CircuitBreakerTrippedEvent)
|
|
@@ -53,7 +53,7 @@ Using EventCapture for behavior-focused testing:
|
|
|
53
53
|
Using EventDrivenMockServer for event-triggered test behavior:
|
|
54
54
|
|
|
55
55
|
from aiohomematic_test_support.event_mock import EventDrivenMockServer
|
|
56
|
-
from aiohomematic.central.
|
|
56
|
+
from aiohomematic.central.events import DataRefreshTriggeredEvent
|
|
57
57
|
|
|
58
58
|
mock_server = EventDrivenMockServer(event_bus=central.event_bus)
|
|
59
59
|
mock_server.when(DataRefreshTriggeredEvent).then_call(
|
|
@@ -76,4 +76,4 @@ test dependencies to access test support functionality.
|
|
|
76
76
|
|
|
77
77
|
from __future__ import annotations
|
|
78
78
|
|
|
79
|
-
__version__ = "
|
|
79
|
+
__version__ = "2026.1.4"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aiohomematic-test-support
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2026.1.4
|
|
4
4
|
Summary: Support-only package for AioHomematic (tests/dev). Not part of production builds.
|
|
5
5
|
Author-email: SukramJ <sukramj@icloud.com>, Daniel Perna <danielperna84@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/SukramJ/aiohomematic
|
{aiohomematic_test_support-2025.12.54 → aiohomematic_test_support-2026.1.4}/event_capture.py
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# SPDX-License-Identifier: MIT
|
|
2
|
-
# Copyright (c) 2021-
|
|
2
|
+
# Copyright (c) 2021-2026
|
|
3
3
|
"""
|
|
4
4
|
Event capture utilities for test verification.
|
|
5
5
|
|
|
@@ -19,7 +19,7 @@ from dataclasses import dataclass, field
|
|
|
19
19
|
from typing import TYPE_CHECKING, Any, TypeVar
|
|
20
20
|
|
|
21
21
|
if TYPE_CHECKING:
|
|
22
|
-
from aiohomematic.central.
|
|
22
|
+
from aiohomematic.central.events import Event, EventBus
|
|
23
23
|
|
|
24
24
|
T = TypeVar("T", bound="Event")
|
|
25
25
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# SPDX-License-Identifier: MIT
|
|
2
|
-
# Copyright (c) 2021-
|
|
2
|
+
# Copyright (c) 2021-2026
|
|
3
3
|
"""
|
|
4
4
|
Event-driven mock server for test triggers.
|
|
5
5
|
|
|
@@ -27,7 +27,7 @@ from dataclasses import dataclass, field
|
|
|
27
27
|
from typing import TYPE_CHECKING, Any
|
|
28
28
|
|
|
29
29
|
if TYPE_CHECKING:
|
|
30
|
-
from aiohomematic.central.
|
|
30
|
+
from aiohomematic.central.events import Event, EventBus
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
@dataclass
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# SPDX-License-Identifier: MIT
|
|
2
|
-
# Copyright (c) 2021-
|
|
2
|
+
# Copyright (c) 2021-2026
|
|
3
3
|
"""
|
|
4
4
|
Test factories for creating CentralUnit and Client instances.
|
|
5
5
|
|
|
@@ -43,7 +43,7 @@ from unittest.mock import MagicMock, Mock, patch
|
|
|
43
43
|
from aiohttp import ClientSession
|
|
44
44
|
|
|
45
45
|
from aiohomematic.central import CentralConfig, CentralUnit
|
|
46
|
-
from aiohomematic.central.
|
|
46
|
+
from aiohomematic.central.events import (
|
|
47
47
|
DataPointsCreatedEvent,
|
|
48
48
|
DeviceLifecycleEvent,
|
|
49
49
|
DeviceLifecycleEventType,
|
|
@@ -52,7 +52,7 @@ from aiohomematic.central.integration_events import (
|
|
|
52
52
|
)
|
|
53
53
|
from aiohomematic.client import ClientConfig, InterfaceConfig
|
|
54
54
|
from aiohomematic.const import LOCAL_HOST, Interface, OptionalSettings
|
|
55
|
-
from aiohomematic.interfaces
|
|
55
|
+
from aiohomematic.interfaces import ClientProtocol
|
|
56
56
|
from aiohomematic_test_support import const
|
|
57
57
|
from aiohomematic_test_support.mock import SessionPlayer, get_client_session, get_mock, get_xml_rpc_proxy
|
|
58
58
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# SPDX-License-Identifier: MIT
|
|
2
|
-
# Copyright (c) 2021-
|
|
2
|
+
# Copyright (c) 2021-2026
|
|
3
3
|
"""Helpers for tests."""
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
@@ -13,7 +13,7 @@ import orjson
|
|
|
13
13
|
|
|
14
14
|
from aiohomematic.central import CentralUnit
|
|
15
15
|
from aiohomematic.const import UTF_8
|
|
16
|
-
from aiohomematic.interfaces
|
|
16
|
+
from aiohomematic.interfaces import CustomDataPointProtocol
|
|
17
17
|
|
|
18
18
|
_LOGGER = logging.getLogger(__name__)
|
|
19
19
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# SPDX-License-Identifier: MIT
|
|
2
|
-
# Copyright (c) 2021-
|
|
2
|
+
# Copyright (c) 2021-2026
|
|
3
3
|
"""
|
|
4
4
|
Mock implementations for RPC clients with session playback.
|
|
5
5
|
|
|
@@ -53,13 +53,12 @@ from aiohttp import ClientSession
|
|
|
53
53
|
import orjson
|
|
54
54
|
|
|
55
55
|
from aiohomematic.central import CentralUnit
|
|
56
|
-
from aiohomematic.client import BaseRpcProxy
|
|
57
|
-
from aiohomematic.client.circuit_breaker import CircuitBreaker
|
|
56
|
+
from aiohomematic.client import BaseRpcProxy, CircuitBreaker
|
|
58
57
|
from aiohomematic.client.json_rpc import _JsonKey, _JsonRpcMethod
|
|
59
58
|
from aiohomematic.client.rpc_proxy import _RpcMethod
|
|
60
59
|
from aiohomematic.const import UTF_8, DataOperationResult, Parameter, ParamsetKey, RPCType
|
|
61
60
|
from aiohomematic.property_decorators import DelegatedProperty
|
|
62
|
-
from aiohomematic.store
|
|
61
|
+
from aiohomematic.store import cleanup_params_for_session, freeze_params, unfreeze_params
|
|
63
62
|
from aiohomematic_test_support import const
|
|
64
63
|
|
|
65
64
|
_LOGGER = logging.getLogger(__name__)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|