summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_plugin_help.py12
1 files changed, 10 insertions, 2 deletions
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()