test(auth): 补 phone_occupied 的 avatar_url 断言(锁定 M2 冲突页契约)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
guke
2026-07-13 15:23:22 +08:00
parent a5fdcb53d8
commit c1b00eca0c
+1
View File
@@ -125,6 +125,7 @@ def test_wechat_bind_sms_phone_occupied(client, monkeypatch) -> None:
assert body["status"] == "phone_occupied"
assert body["token"] is None
assert body["occupied_account"]["nickname"] == occupied_nickname
assert body["occupied_account"]["avatar_url"] is None # 短信注册账号无头像 → 序列化为 null
assert body["occupied_account"]["created_at"]