Verified Commit 013eec74 authored by Peter Stanko's avatar Peter Stanko
Browse files

Submit configurable has to be boolean

parent f6f0b86e
......@@ -172,7 +172,7 @@ class ProjectSchema(BaseSchema, NamedSchema, Schema):
"""
assignment_url = fields.Str(required=False, allow_none=True)
submit_instructions = fields.Str(required=False, allow_none=True)
submit_configurable = fields.Str(required=False, allow_none=True)
submit_configurable = fields.Bool(required=False, allow_none=True)
config = NESTED('ProjectConfig',
exclude=('id', '_submissions_allowed_from',
'_submissions_allowed_to', '_archive_from'))
......
......@@ -43,6 +43,7 @@ def test_create(rest_service, client):
assert len(cpp_updated.projects) == cpp_projects + 1
assert new_project['name'] == "new_project"
assert new_project['id']
assert new_project['submit_configurable'] == True
rest_tools.assert_project_in(cpp_updated.projects, new_project)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment