Skip to content

Commit

Permalink
Fix black and isort violations
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Aug 21, 2024
1 parent 2ef4bd6 commit b0487ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 4 additions & 5 deletions test/run_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
import os
import sys


sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))

from watchtower import CloudWatchLogHandler # noqa: E402

handler = CloudWatchLogHandler(log_stream_name='run_logging')
logger = logging.getLogger('run_logging')
handler = CloudWatchLogHandler(log_stream_name="run_logging")
logger = logging.getLogger("run_logging")
logger.setLevel(logging.INFO)
logger.addHandler(handler)
logger.info('msg')
logger.info("msg")
handler.close()
4 changes: 1 addition & 3 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,8 @@ def test_unicode_logging(self):
self.assertEqual(submit_batch.call_count, 2)

def test_log_group_tagging(self):

tags = {"tag1": "value1", "tag2": "value2"}
handler = CloudWatchLogHandler(log_group_name="test_log_group_tagging",
log_group_tags=tags)
handler = CloudWatchLogHandler(log_group_name="test_log_group_tagging", log_group_tags=tags)
logger = logging.getLogger("test_log_group_tagging")
logger.addHandler(handler)
logger.propagate = False
Expand Down

0 comments on commit b0487ca

Please sign in to comment.