Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kontr 2.0
Portal API Backend
Commits
013eec74
Verified
Commit
013eec74
authored
Mar 22, 2019
by
Peter Stanko
Browse files
Submit configurable has to be boolean
parent
f6f0b86e
Changes
2
Hide whitespace changes
Inline
Side-by-side
portal/rest/schemas.py
View file @
013eec74
...
...
@@ -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'
))
...
...
tests/rest/test_project.py
View file @
013eec74
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment