Formatting

This commit is contained in:
Montana 2019-01-04 14:08:44 -05:00
parent c718e9a0d7
commit 1fcd27a4e0
3 changed files with 5 additions and 4 deletions

View File

@ -48,7 +48,7 @@ class AppInfoForm(CacheableForm):
choices=PROJECT_COMPLEXITY,
default="",
widget=ListWidget(prefix_label=False),
option_widget=CheckboxInput()
option_widget=CheckboxInput(),
)
complexity_other = StringField("Project Complexity Other")
dev_team = SelectMultipleField(
@ -57,7 +57,7 @@ class AppInfoForm(CacheableForm):
choices=DEV_TEAM,
default="",
widget=ListWidget(prefix_label=False),
option_widget=CheckboxInput()
option_widget=CheckboxInput(),
)
dev_team_other = StringField("Development Team Other")
team_experience = RadioField(

View File

@ -81,7 +81,7 @@ class ShowTaskOrderWorkflow:
task_order_dict = task_order.to_dictionary()
for field in task_order_dict:
if task_order_dict[field] is None:
task_order_dict[field] = ''
task_order_dict[field] = ""
return task_order_dict

View File

@ -3,7 +3,8 @@ from wtforms import Form
from atst.forms.task_order import AppInfoForm
def test_complexity():
form = AppInfoForm(formdata={"complexity":["other", "not_sure", "storage"]})
form = AppInfoForm(formdata={"complexity": ["other", "not_sure", "storage"]})
assert form.data["complexity"] == ["other", "not_sure", "storage"]