Skip to content
Snippets Groups Projects
Commit ab19a716 authored by Jörn Künsemöller's avatar Jörn Künsemöller
Browse files

TMSS-56: remove wrong type conversion

parent 433def2e
No related branches found
No related tags found
1 merge request!151Resolve TMSS-56 and TMSS-61
...@@ -79,5 +79,4 @@ def add_defaults_to_json_object_for_schema(json_object: dict, schema: str) -> di ...@@ -79,5 +79,4 @@ def add_defaults_to_json_object_for_schema(json_object: dict, schema: str) -> di
'''return a copy of the json object with defaults filled in accoring to the schema for all the missing properties''' '''return a copy of the json object with defaults filled in accoring to the schema for all the missing properties'''
copy_of_json_object = deepcopy(json_object) copy_of_json_object = deepcopy(json_object)
_DefaultValidatingDraft6Validator(schema).validate(copy_of_json_object) _DefaultValidatingDraft6Validator(schema).validate(copy_of_json_object)
print(copy_of_json_object)
return copy_of_json_object return copy_of_json_object
...@@ -179,7 +179,7 @@ def TaskBlueprint_test_data(name='my_task_blueprint', task_draft: models.TaskDra ...@@ -179,7 +179,7 @@ def TaskBlueprint_test_data(name='my_task_blueprint', task_draft: models.TaskDra
return {"name": name, return {"name": name,
"description": "", "description": "",
"tags": [], "tags": [],
"specifications_doc": task_draft.specifications_doc if isinstance(task_draft.specifications_doc, str) else json.dumps(task_draft.specifications_doc), "specifications_doc": task_draft.specifications_doc,
"do_cancel": False, "do_cancel": False,
"draft": task_draft, "draft": task_draft,
"specifications_template": task_draft.specifications_template, "specifications_template": task_draft.specifications_template,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment