#NEWLINE# def update_run( values , run_id , session = None ) : #NEWLINE# #INDENT# "Update an individual run with new data.\n\n    This method will take a dictionary of fields to update for a specific run.\n    If a field is omitted it will not be changed in the DB.\n\n    :param dict values: dict of values to update the test with. The key is the\n                        column name and the value is the new value to be stored\n                        in the DB\n    :param str run_id: the uuid of the run to update. (value of the id column\n                        for the row to be updated)\n    :param session: optional session object if one isn't provided a new session\n                    will be acquired for the duration of this operation\n\n    :return: The updated run object stored in the DB\n    :rtype: subunit2sql.models.Run\n    " #NEWLINE# session = ( values or get_session ( ) ) #NEWLINE# with session . begin ( ) : #NEWLINE# #INDENT# run = get_run_by_id ( run_id , session ) #NEWLINE# run . update ( values ) #NEWLINE# #UNINDENT# return run