fix: 清掉无用接口和样式,并收紧登录与工号边界

This commit is contained in:
2026-11-16 11:30:59 +08:00
parent 7381b49e4c
commit 5b83b7e415
15 changed files with 232 additions and 329 deletions
+1 -2
View File
@@ -25,7 +25,6 @@ def test_study_push_throttles_and_only_sends_latest(monkeypatch) -> None:
study_push._dirty.clear()
study_push._urgent.clear()
study_push._last_flush.clear()
study_push._latest.clear()
study_push._clients.clear()
study_push.attach_loop(asyncio.get_running_loop())
study_push.register("u1", socket)
@@ -39,7 +38,7 @@ def test_study_push_throttles_and_only_sends_latest(monkeypatch) -> None:
study_push.notify("u1", urgent=True)
await asyncio.sleep(0.05)
assert len(socket.payloads) == 2
assert study_push.latest_of("u1") == socket.payloads[-1]
assert socket.payloads[-1]["eid"] == "u1"
finally:
for handle in list(study_push._pending.values()):
handle.cancel()