[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2026-02-06 02:42:42 +00:00
committed by GitHub
parent 18d66b3262
commit 63248ed088
2 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,7 @@ def batch_update_api_token_last_used():
token_scope_pairs: list[tuple[str, str | None]] = []
for key in keys_to_process:
# Strip prefix
suffix = key[len(ACTIVE_TOKEN_KEY_PREFIX):]
suffix = key[len(ACTIVE_TOKEN_KEY_PREFIX) :]
# Split into scope:token (scope may be "None")
parts = suffix.split(":", 1)
if len(parts) == 2:

View File

@ -337,6 +337,7 @@ class TestEndToEndCacheFlow:
ApiTokenCache.set(test_token_value, test_scope, mock_token)
try:
def read_cache():
return ApiTokenCache.get(test_token_value, test_scope)