Skip to content

Commit e6b84d5

Browse files
committed
fake_cache only to return string or bool
1 parent 18c99aa commit e6b84d5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_usb.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2110,23 +2110,23 @@ def fake_cache(dummy: object, setting: str) -> str | bool | None: # noqa: PLR09
21102110
if setting == pw_node.CACHE_NODE_INFO_TIMESTAMP:
21112111
return "2024-12-7-1-0-0"
21122112
if setting == pw_sed.CACHE_SED_AWAKE_DURATION:
2113-
return 20
2113+
return "20"
21142114
if setting == pw_sed.CACHE_SED_CLOCK_INTERVAL:
2115-
return 12600
2115+
return "12600"
21162116
if setting == pw_sed.CACHE_SED_CLOCK_SYNC:
21172117
return True
21182118
if setting == pw_sed.CACHE_SED_DIRTY:
21192119
return False
21202120
if setting == pw_sed.CACHE_SED_MAINTENANCE_INTERVAL:
2121-
return 60
2121+
return "60"
21222122
if setting == pw_sed.CACHE_SED_SLEEP_DURATION:
2123-
return 60
2123+
return "60"
21242124
if setting == pw_scan.CACHE_SCAN_MOTION_STATE:
21252125
return False
21262126
if setting == pw_scan.CACHE_SCAN_MOTION_TIMESTAMP:
21272127
return "2024-12-6-1-0-0"
21282128
if setting == pw_scan.CACHE_SCAN_CONFIG_RESET_TIMER:
2129-
return 10
2129+
return "10"
21302130
if setting == pw_scan.CACHE_SCAN_CONFIG_SENSITIVITY:
21312131
return "MEDIUM"
21322132
if setting == pw_scan.CACHE_SCAN_CONFIG_DAYLIGHT_MODE:

0 commit comments

Comments
 (0)