Skip to content

Commit b34569b

Browse files
committed
fix: update test assertion to include keyword arguments for cache.set
1 parent 7fae51e commit b34569b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_advanced_features.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,10 @@ async def test_refresh_execution(self):
214214

215215
# Verify fetcher was called and cache was updated
216216
mock_fetcher.assert_called_once()
217-
mock_cache.set.assert_called_once_with("test_key", "refreshed_value", 1)
217+
# cache.set uses keyword arguments: set(key, value, ttl=..., tags=...)
218+
mock_cache.set.assert_called_once_with(
219+
"test_key", "refreshed_value", ttl=1, tags=None
220+
)
218221

219222
await scheduler.stop()
220223

0 commit comments

Comments
 (0)