Formatting
This commit is contained in:
parent
c718e9a0d7
commit
1fcd27a4e0
@ -48,7 +48,7 @@ class AppInfoForm(CacheableForm):
|
|||||||
choices=PROJECT_COMPLEXITY,
|
choices=PROJECT_COMPLEXITY,
|
||||||
default="",
|
default="",
|
||||||
widget=ListWidget(prefix_label=False),
|
widget=ListWidget(prefix_label=False),
|
||||||
option_widget=CheckboxInput()
|
option_widget=CheckboxInput(),
|
||||||
)
|
)
|
||||||
complexity_other = StringField("Project Complexity Other")
|
complexity_other = StringField("Project Complexity Other")
|
||||||
dev_team = SelectMultipleField(
|
dev_team = SelectMultipleField(
|
||||||
@ -57,7 +57,7 @@ class AppInfoForm(CacheableForm):
|
|||||||
choices=DEV_TEAM,
|
choices=DEV_TEAM,
|
||||||
default="",
|
default="",
|
||||||
widget=ListWidget(prefix_label=False),
|
widget=ListWidget(prefix_label=False),
|
||||||
option_widget=CheckboxInput()
|
option_widget=CheckboxInput(),
|
||||||
)
|
)
|
||||||
dev_team_other = StringField("Development Team Other")
|
dev_team_other = StringField("Development Team Other")
|
||||||
team_experience = RadioField(
|
team_experience = RadioField(
|
||||||
|
@ -81,7 +81,7 @@ class ShowTaskOrderWorkflow:
|
|||||||
task_order_dict = task_order.to_dictionary()
|
task_order_dict = task_order.to_dictionary()
|
||||||
for field in task_order_dict:
|
for field in task_order_dict:
|
||||||
if task_order_dict[field] is None:
|
if task_order_dict[field] is None:
|
||||||
task_order_dict[field] = ''
|
task_order_dict[field] = ""
|
||||||
return task_order_dict
|
return task_order_dict
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,7 +3,8 @@ from wtforms import Form
|
|||||||
|
|
||||||
from atst.forms.task_order import AppInfoForm
|
from atst.forms.task_order import AppInfoForm
|
||||||
|
|
||||||
|
|
||||||
def test_complexity():
|
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"]
|
assert form.data["complexity"] == ["other", "not_sure", "storage"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user