Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Praseetha-KR committed Oct 18, 2023
1 parent d069858 commit 2c9fb92
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_aklogger.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ class TestAkLogger:
logger.set_slack_level("WARNING")
logger.log_to_file("file.log")

slack_invalid_auth_error = "aklogger: Slack push failed: invalid_auth"
slack_invalid_auth_error = (
"aklogger: Slack push failed: The request to the Slack API failed. "
"(url: https://www.slack.com/api/chat.postMessage)\n"
"The server responded with: {'ok': False, 'error': 'invalid_auth'}"
)

def test_debug_should_write_if_loglevel_is_debug(self):
summary = "This is a debug message"
Expand Down

0 comments on commit 2c9fb92

Please sign in to comment.