fix(project): show OAuth error code when meeting board token refresh fails

RefreshError showed only a generic message; include Google's error code
and explain client ID/secret mismatch (unauthorized_client).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 12:59:33 +09:00
parent c0b742af8a
commit 46dc038e26
2 changed files with 10 additions and 1 deletions
+2
View File
@@ -90,6 +90,8 @@ class MeetingBoardTests(unittest.TestCase):
with self.assertRaises(gs.GoogleSlidesError):
off.open_week_board(folder_id="F", week_key="2026-10-05", title="t")
self.assertIn("토큰을 다시 발급", gs._friendly(RuntimeError("invalid_scope: Bad Request")))
self.assertIn("OAuth 클라이언트", gs._friendly(RuntimeError("('unauthorized_client: Unauthorized', {'error': 'unauthorized_client'})")))
self.assertIn("만료·폐기", gs._friendly(RuntimeError("('invalid_grant: Bad Request', {})")))
def test_title_uses_month_week_and_period(self):
self.assertEqual(api.meeting_board_title(date(2026, 10, 5)), "10월 2주차 (10/5~10/11)")