async def METHOD_NAME(app: App, tmp_path):
    from nonebot_bison.config.db_config import config
    from nonebot_bison.script.cli import cli, run_sync
    cli = cast(BaseCommand, cli)
    assert len(await config.list_subs_with_all_info()) == 0
    mock_file: Path = tmp_path / "1.json"
    mock_file.write_text(get_file("v1/subs_export.json"))
    runner = CliRunner()
    result = await run_sync(runner.invoke)(cli, ["import"])
    assert result.exit_code == 2
    result = await run_sync(runner.invoke)(cli, ["import", "-p"])
    assert result.exit_code == 2
    result = await run_sync(runner.invoke)(cli, ["import", "-p", str(mock_file)])
    assert result.exit_code == 0
    assert len(await config.list_subs_with_all_info()) == 3
    mock_file: Path = tmp_path / "2.yaml"
    mock_file.write_text(get_file("v1/subs_export.yaml"))
    result = await run_sync(runner.invoke)(cli, ["import", "-p", str(mock_file), "--format=yml"])
    assert result.exit_code == 0
    assert len(await config.list_subs_with_all_info()) == 6