♻️ 将 refresh_anonymous_cookie 改为内部方法, 同时外部使用 refresh_client 方法进行刷新匿名 cookie

This commit is contained in:
2024-10-29 09:38:08 +08:00
parent b130627d7e
commit 81e53419a3
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ async def test_cookie(app: App, init_scheduler):
client_mgr = cast(CookieClientManager, site.client_mgr)
# 刷新匿名cookie
await client_mgr.refresh_anonymous_cookie()
await client_mgr.refresh_client()
cookies = await config.get_cookie(site_name=site.name)
assert len(cookies) == 1