linting
This commit is contained in:
parent
a8c953477c
commit
ecf6e8b017
1 changed files with 5 additions and 5 deletions
|
@ -160,7 +160,7 @@ class WebhookApplicationTestCase(aiohttp.test_utils.AioHTTPTestCase):
|
||||||
notice=False,
|
notice=False,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
any_order=True
|
any_order=True,
|
||||||
)
|
)
|
||||||
self.fake_cache.set.assert_called_once_with(
|
self.fake_cache.set.assert_called_once_with(
|
||||||
fake_send_text_to_room.return_value.event_id,
|
fake_send_text_to_room.return_value.event_id,
|
||||||
|
@ -211,7 +211,7 @@ class WebhookApplicationTestCase(aiohttp.test_utils.AioHTTPTestCase):
|
||||||
notice=False,
|
notice=False,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
any_order=True
|
any_order=True,
|
||||||
)
|
)
|
||||||
self.fake_cache.set.assert_called_once_with(
|
self.fake_cache.set.assert_called_once_with(
|
||||||
fake_send_text_to_room.return_value.event_id,
|
fake_send_text_to_room.return_value.event_id,
|
||||||
|
@ -454,7 +454,7 @@ class WebhookApplicationTestCase(aiohttp.test_utils.AioHTTPTestCase):
|
||||||
|
|
||||||
fake_logger.exception.assert_called_once_with(
|
fake_logger.exception.assert_called_once_with(
|
||||||
"Unable to send alert fingerprint1 to Matrix room !abcdefg:example.com",
|
"Unable to send alert fingerprint1 to Matrix room !abcdefg:example.com",
|
||||||
exc_info=fake_send_text_to_room.side_effect
|
exc_info=fake_send_text_to_room.side_effect,
|
||||||
)
|
)
|
||||||
|
|
||||||
@patch.object(matrix_alertbot.webhook, "logger", autospec=True)
|
@patch.object(matrix_alertbot.webhook, "logger", autospec=True)
|
||||||
|
@ -485,7 +485,7 @@ class WebhookApplicationTestCase(aiohttp.test_utils.AioHTTPTestCase):
|
||||||
|
|
||||||
fake_logger.exception.assert_called_once_with(
|
fake_logger.exception.assert_called_once_with(
|
||||||
"Unable to send alert fingerprint1 to Matrix room !abcdefg:example.com",
|
"Unable to send alert fingerprint1 to Matrix room !abcdefg:example.com",
|
||||||
exc_info=fake_create_alert.side_effect
|
exc_info=fake_create_alert.side_effect,
|
||||||
)
|
)
|
||||||
|
|
||||||
@patch.object(matrix_alertbot.webhook, "logger", autospec=True)
|
@patch.object(matrix_alertbot.webhook, "logger", autospec=True)
|
||||||
|
@ -518,7 +518,7 @@ class WebhookApplicationTestCase(aiohttp.test_utils.AioHTTPTestCase):
|
||||||
|
|
||||||
fake_logger.exception.assert_called_once_with(
|
fake_logger.exception.assert_called_once_with(
|
||||||
"Unable to send alert fingerprint1 to Matrix room !abcdefg:example.com",
|
"Unable to send alert fingerprint1 to Matrix room !abcdefg:example.com",
|
||||||
exc_info=fake_send_text_to_room.side_effect
|
exc_info=fake_send_text_to_room.side_effect,
|
||||||
)
|
)
|
||||||
|
|
||||||
async def test_create_alert_update_silence(self) -> None:
|
async def test_create_alert_update_silence(self) -> None:
|
||||||
|
|
Loading…
Reference in a new issue