From 14ce88e04ba2762156142185d9dfeaccb64aef5a Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Mon, 24 Jun 2024 10:37:44 +0100 Subject: [PATCH] black formatting on test_uptimekuma.py --- tests/unit/hooks/test_uptimekuma.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/unit/hooks/test_uptimekuma.py b/tests/unit/hooks/test_uptimekuma.py index a5c3ef5..05d5802 100644 --- a/tests/unit/hooks/test_uptimekuma.py +++ b/tests/unit/hooks/test_uptimekuma.py @@ -38,6 +38,7 @@ def test_ping_monitor_hits_custom_uptimekuma_on_fail(): dry_run=False, ) + def test_ping_monitor_custom_uptimekuma_on_start(): hook_config = {'push_url': CUSTOM_PUSH_URL} flexmock(module.requests).should_receive('get').with_args( @@ -53,6 +54,7 @@ def test_ping_monitor_custom_uptimekuma_on_start(): dry_run=False, ) + def test_ping_monitor_custom_uptimekuma_on_finish(): hook_config = {'push_url': CUSTOM_PUSH_URL} flexmock(module.requests).should_receive('get').with_args( @@ -68,6 +70,7 @@ def test_ping_monitor_custom_uptimekuma_on_finish(): dry_run=False, ) + def test_ping_monitor_does_not_hit_custom_uptimekuma_on_fail_dry_run(): hook_config = {'push_url': CUSTOM_PUSH_URL} flexmock(module.requests).should_receive('get').never() @@ -81,6 +84,7 @@ def test_ping_monitor_does_not_hit_custom_uptimekuma_on_fail_dry_run(): dry_run=True, ) + def test_ping_monitor_does_not_hit_custom_uptimekuma_on_start_dry_run(): hook_config = {'push_url': CUSTOM_PUSH_URL} flexmock(module.requests).should_receive('get').never() @@ -94,6 +98,7 @@ def test_ping_monitor_does_not_hit_custom_uptimekuma_on_start_dry_run(): dry_run=True, ) + def test_ping_monitor_does_not_hit_custom_uptimekuma_on_finish_dry_run(): hook_config = {'push_url': CUSTOM_PUSH_URL} flexmock(module.requests).should_receive('get').never() @@ -124,6 +129,7 @@ def test_ping_monitor_with_connection_error_logs_warning(): dry_run=False, ) + def test_ping_monitor_with_other_error_logs_warning(): hook_config = {'push_url': CUSTOM_PUSH_URL} response = flexmock(ok=False) @@ -144,6 +150,7 @@ def test_ping_monitor_with_other_error_logs_warning(): dry_run=False, ) + def test_ping_monitor_with_invalid_run_state(): hook_config = {'push_url': CUSTOM_PUSH_URL} flexmock(module.requests).should_receive('get').never()