def METHOD_NAME(monkeypatch, sync_db: "Session", cli_runner: CliRunner, cli: Typer):
    monkeypatch.setattr(
        settings,
        "users_db_file",
        os.path.join(os.path.dirname(__file__), "test_user_files", "users_invalid_workspace.yml"),
    )
    result = cli_runner.invoke(cli, "server database users migrate")
    assert result.exit_code == 1
    assert sync_db.query(User).count() == 0
    assert sync_db.query(Workspace).count() == 0
    assert sync_db.query(WorkspaceUser).count() == 0