diff --git a/tests/conftest.py b/tests/conftest.py index c76550b..7462e8a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -60,7 +60,7 @@ async def use_legacy_config(app: App): import aiofiles from nonebot_bison.config.config_legacy import config, get_config_path - async with aiofiles.open(get_config_path(), "w") as f: + async with aiofiles.open(get_config_path()[0], "w") as f: await f.write("{}") config._do_init()