From 1fcd27a4e0258e397c8924617e6a23ff2708d9a6 Mon Sep 17 00:00:00 2001 From: Montana Date: Fri, 4 Jan 2019 14:08:44 -0500 Subject: [PATCH] Formatting --- atst/forms/task_order.py | 4 ++-- atst/routes/task_orders/new.py | 2 +- tests/forms/test_task_order_form.py | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/atst/forms/task_order.py b/atst/forms/task_order.py index f565cbf4..b63ce7b0 100644 --- a/atst/forms/task_order.py +++ b/atst/forms/task_order.py @@ -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( diff --git a/atst/routes/task_orders/new.py b/atst/routes/task_orders/new.py index 78f6aea8..e6c22bf7 100644 --- a/atst/routes/task_orders/new.py +++ b/atst/routes/task_orders/new.py @@ -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 diff --git a/tests/forms/test_task_order_form.py b/tests/forms/test_task_order_form.py index 1d5b4582..f8b11fd2 100644 --- a/tests/forms/test_task_order_form.py +++ b/tests/forms/test_task_order_form.py @@ -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"]