From 13a688048c5a4d083cf1daf7abde827334f6f280 Mon Sep 17 00:00:00 2001 From: Dan Funk Date: Fri, 20 Mar 2020 07:54:01 -0400 Subject: [PATCH] Fixing failed tests, setting unknown=EXCLUDE on the workflow spec model schema so that it can handle getting back the dump-only workflow_spec_category and just ignore it. --- crc/models/workflow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crc/models/workflow.py b/crc/models/workflow.py index 31775882..00c63231 100644 --- a/crc/models/workflow.py +++ b/crc/models/workflow.py @@ -1,6 +1,7 @@ import enum import marshmallow +from marshmallow import EXCLUDE from marshmallow_sqlalchemy import SQLAlchemyAutoSchema from crc import db @@ -38,6 +39,7 @@ class WorkflowSpecModelSchema(SQLAlchemyAutoSchema): load_instance = True include_relationships = True include_fk = True # Includes foreign keys + unknown = EXCLUDE workflow_spec_category = marshmallow.fields.Nested(WorkflowSpecCategoryModelSchema, dump_only=True)