def METHOD_NAME(flask_client, mock_otp_generator):
    response = flask_client.post(RemoteRun.urls[0], data='{"type": "INVALID"}')
    assert response.status_code == 500
    mock_otp_generator.assert_not_called()