File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,7 +65,12 @@ async def test_start_vacuum_service():
6565
6666from roborock .testing .channel import FakeChannel
6767from roborock .testing .cloud import FakeRoborockCloud , FakeWebApiClient
68- from roborock .testing .simulator import RoborockDeviceSimulator
68+ from roborock .testing .simulator import (
69+ DEFAULT_KEY_T ,
70+ DEFAULT_LOCAL_KEY ,
71+ DEFAULT_PRODUCT_ID ,
72+ RoborockDeviceSimulator ,
73+ )
6974from roborock .testing .v1_simulator import (
7075 DEFAULT_APP_INIT ,
7176 DEFAULT_CLEAN_SUMMARY ,
@@ -82,8 +87,11 @@ async def test_start_vacuum_service():
8287 "DEFAULT_CLEAN_SUMMARY" ,
8388 "DEFAULT_CONSUMABLE" ,
8489 "DEFAULT_DND_TIMER" ,
90+ "DEFAULT_KEY_T" ,
8591 "DEFAULT_LAST_CLEAN_RECORD" ,
92+ "DEFAULT_LOCAL_KEY" ,
8693 "DEFAULT_NETWORK_INFO" ,
94+ "DEFAULT_PRODUCT_ID" ,
8795 "DEFAULT_STATUS" ,
8896 "FakeChannel" ,
8997 "FakeRoborockCloud" ,
Original file line number Diff line number Diff line change 1616# Shared authentication key constants
1717DEFAULT_LOCAL_KEY = "fake_localkey_16bytes"
1818DEFAULT_KEY_T = "qiCNieZa"
19+ DEFAULT_PRODUCT_ID = "product-id-123"
1920
2021
2122class RoborockDeviceSimulator :
@@ -56,7 +57,7 @@ def __init__(
5657 ):
5758 self .duid = duid
5859 self .product = product or HomeDataProduct (
59- id = f"product_ { self . duid } " ,
60+ id = DEFAULT_PRODUCT_ID ,
6061 name = "Roborock Vacuum" ,
6162 model = "roborock.vacuum.s7" ,
6263 category = RoborockCategory .VACUUM ,
You can’t perform that action at this time.
0 commit comments