def METHOD_NAME(mock_app_run, expected_arguments, spec_file):
    user_path = "/some/path/here"
    runner = CliRunner()
    runner.invoke(
        main, ["run", spec_file, "--console-ui-from", user_path], catch_exceptions=False
    )
    expected_arguments["swagger_ui_options"]["swagger_path"] = user_path
    mock_app_run.assert_called_with("connexion.cli", **expected_arguments)