Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
yihong1120 committed Oct 22, 2024
1 parent b367c4a commit 7a7cf0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/notifiers/line_notifier_message_api.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from __future__ import annotations

import json
import os
import logging
import os
from datetime import datetime
from datetime import timedelta
from typing import TypedDict
Expand Down
7 changes: 5 additions & 2 deletions tests/src/notifiers/line_notifier_message_api_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import logging
import os
import unittest
from datetime import datetime
Expand All @@ -24,6 +25,8 @@ def setUp(self):
"""
Set up mock data and environment for each test case.
"""
logging.basicConfig(level=logging.ERROR)

self.channel_access_token = 'test_channel_access_token'
self.messenger = LineMessenger(
channel_access_token=self.channel_access_token,
Expand Down Expand Up @@ -418,8 +421,8 @@ def test_main(
def test_load_image_records_failure(
self,
mock_logging_error: MagicMock,
mock_file: MagicMock
) -> None:
mock_file: MagicMock,
) -> None:
"""
Test failure when loading image records from JSON file.
"""
Expand Down

0 comments on commit 7a7cf0d

Please sign in to comment.