From 9448a9336036f5e512b4596b4627cf3fda8d1816 Mon Sep 17 00:00:00 2001 From: felinae98 <731499577@qq.com> Date: Tue, 22 Feb 2022 15:28:09 +0800 Subject: [PATCH] update --- .circleci/main.yml | 2 +- CHANGELOG.md | 1 + src/plugins/nonebot_bison/plugin_config.py | 4 ---- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.circleci/main.yml b/.circleci/main.yml index 8736988..e9235ca 100644 --- a/.circleci/main.yml +++ b/.circleci/main.yml @@ -163,7 +163,7 @@ jobs: command: poetry run playwright install-deps && poetry run playwright install chromium - run: name: Coverage test - command: poetry run pytest --cov-report html --cov-report xml --cov=./src/plugins/nonebot_bison --junitxml=test-results/junit.xml\ + command: poetry run pytest --cov-report html --cov-report xml --cov=./src/plugins/nonebot_bison --junitxml=test-results/junit.xml -k 'not compare and not render' - store_test_results: path: test-results diff --git a/CHANGELOG.md b/CHANGELOG.md index a16e0c8..eeae1bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,3 +61,4 @@ ## [0.5.0] - 添加了 FF14 +- 去掉了自己维护的 playwright,转向[nonebot-plugin-htmlrender](https://github.com/kexue-z/nonebot-plugin-htmlrender) diff --git a/src/plugins/nonebot_bison/plugin_config.py b/src/plugins/nonebot_bison/plugin_config.py index 8c9b5b5..d6d5dab 100644 --- a/src/plugins/nonebot_bison/plugin_config.py +++ b/src/plugins/nonebot_bison/plugin_config.py @@ -8,8 +8,6 @@ class PlugConfig(BaseSettings): bison_config_path: str = "" bison_use_pic: bool = False - bison_use_local: bool = False - bison_browser: str = "" bison_init_filter: bool = True bison_use_queue: bool = True bison_outer_url: str = "http://localhost:8080/bison/" @@ -22,5 +20,3 @@ class PlugConfig(BaseSettings): global_config = nonebot.get_driver().config plugin_config = PlugConfig(**global_config.dict()) -if plugin_config.bison_use_local: - warnings.warn("BISON_USE_LOCAL is deprecated, please use BISON_BROWSER")