async def METHOD_NAME(app: App, tmp_path: Path):
    from nonebot_plugin_saa import TargetQQGroup
    from nonebot_bison.config.db_config import config
    from nonebot_bison.types import Target as TTarget
    from nonebot_bison.script.cli import cli, run_sync
    cli = cast(BaseCommand, cli)
    await config.add_subscribe(
        TargetQQGroup(group_id=123),
        target=TTarget("weibo_id"),
        target_name="weibo_name",
        platform_name="weibo",
        cats=[],
        tags=[],
    )
    await config.add_subscribe(
        TargetQQGroup(group_id=234),
        target=TTarget("weibo_id"),
        target_name="weibo_name",
        platform_name="weibo",
        cats=[],
        tags=["kaltsit", "amiya"],
    )
    await config.add_subscribe(
        TargetQQGroup(group_id=234),
        target=TTarget("bilibili_id"),
        target_name="bilibili_name",
        platform_name="bilibili",
        cats=[1, 2],
        tags=[],
    )
    assert len(await config.list_subs_with_all_info()) == 3
    with patch("time.time") as mock_time:
        mock_now = mock_time.now.return_value
        mock_now.time.return_value = 1
        runner = CliRunner()
        # 是否默认导出到工作目录
        with runner.isolated_filesystem(temp_dir=tmp_path):
            result = await run_sync(runner.invoke)(cli, ["export"])
            assert result.exit_code == 0
            file_path = Path.cwd() / "bison_subscribes_export_1.json"
            assert file_path.exists()
            assert '"version": 2' in file_path.read_text()
            assert '"group_id": 123' in file_path.read_text()
        # 是否导出到指定已存在文件夹
        data_dir = tmp_path / "data"
        data_dir.mkdir()
        result = await run_sync(runner.invoke)(cli, ["export", "-p", str(data_dir)])
        assert result.exit_code == 0
        file_path2 = data_dir / "bison_subscribes_export_1.json"
        assert file_path2.exists()
        assert '"version": 2' in file_path2.read_text()
        assert '"group_id": 123' in file_path2.read_text()
        # 是否拒绝导出到不存在的文件夹
        result = await run_sync(runner.invoke)(cli, ["export", "-p", str(tmp_path / "data2")])
        assert result.exit_code == 1
        # 是否可以以yaml格式导出
        result = await run_sync(runner.invoke)(cli, ["export", "-p", str(tmp_path), "--format", "yaml"])
        assert result.exit_code == 0
        file_path3 = tmp_path / "bison_subscribes_export_1.yaml"
        assert file_path3.exists()
        assert "version: 2" in file_path3.read_text()
        assert "group_id: 123" in file_path3.read_text()
        assert "platform_type: QQ Group" in file_path3.read_text()
        # 是否允许以未支持的格式导出
        result = await run_sync(runner.invoke)(cli, ["export", "-p", str(tmp_path), "--format", "toml"])
        assert result.exit_code == 2