def METHOD_NAME(mock_app_run, spec_file):
    runner = CliRunner()
    runner.invoke(main, ["run", spec_file], catch_exceptions=False)
    app_instance = mock_app_run()
    app_instance.run.assert_called()