From 8e938dc1314d3e90530911e96ee199788b972622 Mon Sep 17 00:00:00 2001 From: Lint Action Date: Fri, 18 Feb 2022 15:06:55 +0000 Subject: =?UTF-8?q?:rotating=5Flight:=20=E8=87=AA=E5=8A=A8=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/test_plugin_help.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test_plugin_help.py b/test/test_plugin_help.py index 7bc0cf3..82a0467 100644 --- a/test/test_plugin_help.py +++ b/test/test_plugin_help.py @@ -79,8 +79,16 @@ async def test_service_list(app: App): f = os.path.join(SERVICES_DIR, f) with open(f, "r", encoding="utf-8") as r: service = json.load(r) - services.append([prefix, "√" if service["enabled"] else "×", "√" if service["only_admin"] else "×"]) - table = tabulate(services, headers=["服务名称", "开启状态", "仅支持管理员"], tablefmt="plain", showindex=True) + services.append( + [ + prefix, + "√" if service["enabled"] else "×", + "√" if service["only_admin"] else "×", + ] + ) + table = tabulate( + services, headers=["服务名称", "开启状态", "仅支持管理员"], tablefmt="plain", showindex=True + ) output = f"咱搭载了以下服务~\n{table}\n@bot 帮助 [服务] -以查看对应服务帮助" Message = make_fake_message() -- cgit v1.2.3