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:
@@ -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)")
|
||||
|
||||
Reference in New Issue
Block a user