浏览代码

black formatting on test_uptimekuma.py

Paul Wilde 1 年之前
父节点
当前提交
14ce88e04b
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      tests/unit/hooks/test_uptimekuma.py

+ 7 - 0
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()