Formatting
This commit is contained in:
parent
c718e9a0d7
commit
1fcd27a4e0
@ -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(
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user