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.

This commit is contained in:
Dan Funk 2020-03-20 07:54:01 -04:00
parent ac7c7b42c4
commit 13a688048c
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import enum import enum
import marshmallow import marshmallow
from marshmallow import EXCLUDE
from marshmallow_sqlalchemy import SQLAlchemyAutoSchema from marshmallow_sqlalchemy import SQLAlchemyAutoSchema
from crc import db from crc import db
@ -38,6 +39,7 @@ class WorkflowSpecModelSchema(SQLAlchemyAutoSchema):
load_instance = True load_instance = True
include_relationships = True include_relationships = True
include_fk = True # Includes foreign keys include_fk = True # Includes foreign keys
unknown = EXCLUDE
workflow_spec_category = marshmallow.fields.Nested(WorkflowSpecCategoryModelSchema, dump_only=True) workflow_spec_category = marshmallow.fields.Nested(WorkflowSpecCategoryModelSchema, dump_only=True)