black formatting on test_uptimekuma.py
Some checks are pending
build / test (push) Waiting to run
build / docs (push) Blocked by required conditions

This commit is contained in:
Paul Wilde 2024-06-24 10:37:44 +01:00
parent f97968b72d
commit 14ce88e04b

View file

@ -38,6 +38,7 @@ def test_ping_monitor_hits_custom_uptimekuma_on_fail():
dry_run=False, dry_run=False,
) )
def test_ping_monitor_custom_uptimekuma_on_start(): def test_ping_monitor_custom_uptimekuma_on_start():
hook_config = {'push_url': CUSTOM_PUSH_URL} hook_config = {'push_url': CUSTOM_PUSH_URL}
flexmock(module.requests).should_receive('get').with_args( flexmock(module.requests).should_receive('get').with_args(
@ -53,6 +54,7 @@ def test_ping_monitor_custom_uptimekuma_on_start():
dry_run=False, dry_run=False,
) )
def test_ping_monitor_custom_uptimekuma_on_finish(): def test_ping_monitor_custom_uptimekuma_on_finish():
hook_config = {'push_url': CUSTOM_PUSH_URL} hook_config = {'push_url': CUSTOM_PUSH_URL}
flexmock(module.requests).should_receive('get').with_args( flexmock(module.requests).should_receive('get').with_args(
@ -68,6 +70,7 @@ def test_ping_monitor_custom_uptimekuma_on_finish():
dry_run=False, dry_run=False,
) )
def test_ping_monitor_does_not_hit_custom_uptimekuma_on_fail_dry_run(): def test_ping_monitor_does_not_hit_custom_uptimekuma_on_fail_dry_run():
hook_config = {'push_url': CUSTOM_PUSH_URL} hook_config = {'push_url': CUSTOM_PUSH_URL}
flexmock(module.requests).should_receive('get').never() 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, dry_run=True,
) )
def test_ping_monitor_does_not_hit_custom_uptimekuma_on_start_dry_run(): def test_ping_monitor_does_not_hit_custom_uptimekuma_on_start_dry_run():
hook_config = {'push_url': CUSTOM_PUSH_URL} hook_config = {'push_url': CUSTOM_PUSH_URL}
flexmock(module.requests).should_receive('get').never() 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, dry_run=True,
) )
def test_ping_monitor_does_not_hit_custom_uptimekuma_on_finish_dry_run(): def test_ping_monitor_does_not_hit_custom_uptimekuma_on_finish_dry_run():
hook_config = {'push_url': CUSTOM_PUSH_URL} hook_config = {'push_url': CUSTOM_PUSH_URL}
flexmock(module.requests).should_receive('get').never() flexmock(module.requests).should_receive('get').never()
@ -124,6 +129,7 @@ def test_ping_monitor_with_connection_error_logs_warning():
dry_run=False, dry_run=False,
) )
def test_ping_monitor_with_other_error_logs_warning(): def test_ping_monitor_with_other_error_logs_warning():
hook_config = {'push_url': CUSTOM_PUSH_URL} hook_config = {'push_url': CUSTOM_PUSH_URL}
response = flexmock(ok=False) response = flexmock(ok=False)
@ -144,6 +150,7 @@ def test_ping_monitor_with_other_error_logs_warning():
dry_run=False, dry_run=False,
) )
def test_ping_monitor_with_invalid_run_state(): def test_ping_monitor_with_invalid_run_state():
hook_config = {'push_url': CUSTOM_PUSH_URL} hook_config = {'push_url': CUSTOM_PUSH_URL}
flexmock(module.requests).should_receive('get').never() flexmock(module.requests).should_receive('get').never()