diff --git a/brewtils/schemas.py b/brewtils/schemas.py index 535a84e1..19301a03 100644 --- a/brewtils/schemas.py +++ b/brewtils/schemas.py @@ -531,7 +531,14 @@ class JobExportSchema(JobSchema): def __init__(self, *args, **kwargs): # exclude fields from a Job that we don't want when we later go to import # the Job definition - self.opts.exclude += ("id", "next_run_time", "success_count", "error_count", "canceled_count", "skip_count") + self.opts.exclude += ( + "id", + "next_run_time", + "success_count", + "error_count", + "canceled_count", + "skip_count", + ) super(JobExportSchema, self).__init__(*args, **kwargs) @post_load diff --git a/brewtils/test/fixtures.py b/brewtils/test/fixtures.py index 20b3988e..4d10930a 100644 --- a/brewtils/test/fixtures.py +++ b/brewtils/test/fixtures.py @@ -618,7 +618,14 @@ def job_ids_dict(job_dict): def job_dict_for_import(job_dict): """A job dict but some keys and values are missing.""" dict_copy = copy.deepcopy(job_dict) - for field in ["id", "next_run_time", "success_count", "error_count","canceled_count","skip_count"]: + for field in [ + "id", + "next_run_time", + "success_count", + "error_count", + "canceled_count", + "skip_count", + ]: dict_copy.pop(field, None) return dict_copy