당직근무 0.16.1 (웹 2026-12-01.2): 날짜가 바뀌면 지난달 달력에 머물지 않고 이번 달로 넘어감
This commit is contained in:
1 parent
e678b8520b
commit
3060246e9f
18 files changed
+187
-36
No files matched your search
@@ -260,9 +260,11 @@ class SiteAdminTest(unittest.TestCase):
|
||||
state = self.call("api/admin/brand", token=self.admin)[1]
|
||||
self.assertEqual((state["custom"]["source"], state["custom"]["candidate"], state["custom"]["by"]), ("candidate", cid, "관리자시험"))
|
||||
self.assertEqual(self.raw("brand/favicon")[1], "image/png")
|
||||
actions = [row["action"] for row in self.call("api/admin/log?area=site", token=self.admin)[1]["entries"]]
|
||||
# 두 기록은 같은 초에 남을 수 있어 순서는 보지 않는다(2026-11-25 전체 시험에서 한 번 뒤바뀜).
|
||||
self.assertEqual(set(actions[:2]), {"logo", "logo-import"})
|
||||
entries = self.call("api/admin/log?area=site", token=self.admin)[1]["entries"]
|
||||
# 작업 기록은 초 단위로만 정렬돼 앞선 시험(test_07)의 기록과 같은 초면 순서가 섞인다.
|
||||
# 순서 대신 이번 작업의 내용으로 찾는다(2026-11-25·12-01 전체 시험에서 순서 때문에 실패).
|
||||
self.assertTrue(any(row["action"] == "logo-import" and row["detail"].endswith("art.png") for row in entries), entries[:4])
|
||||
self.assertTrue(any(row["action"] == "logo" and cid in row["detail"] for row in entries), entries[:4])
|
||||
self.assertEqual(self.call("api/admin/brand-logo-reset", {}, token=self.admin)[0], 200)
|
||||
status, kind, _ = self.raw("api/admin/brand-candidate/" + cid, token=self.admin)
|
||||
self.assertEqual((status, kind), (200, "image/png"))
|
||||
|
||||
Reference in new issue
Block a user