mockslurm.process_db.update_with_default_value

mockslurm.process_db.update_with_default_value(db_dict: Dict) Dict[source]

Update db_dict missing fields with the default value in the database

Parameters:

db_dict (Dict) – dict containing a database row data, possibly missing some columns to be filled with default values

Returns:

dict with all fields expected by the database present, with dict values if present, otherwise default values

Return type:

Dict