feat(douyu): 精英宝典工作台支持 CK 检测与失效重登

This commit is contained in:
yml2213
2026-10-23 10:21:15 +08:00
parent d81f0524a8
commit 84d7c8e0a4
7 changed files with 274 additions and 5 deletions
+7
View File
@@ -158,3 +158,10 @@ class TestDouyuWorkbenchScope:
delete_account(self.account.id, db=self.session, current=self.user)
assert self.session.query(DouyuWorkbenchAccount).count() == 0
def test_workbench_ck_routes_registered(self):
from web.backend.main import app
paths = app.openapi()["paths"]
assert "/api/douyu/accounts/ck-check" in paths
assert "/api/douyu/accounts/relogin-invalid" in paths