Allow user to rename task order and do no push othertext to DB

This commit is contained in:
Montana
2019-01-11 12:27:24 -05:00
parent 3765bbea12
commit 804ddc4db5
2 changed files with 23 additions and 19 deletions

View File

@@ -162,6 +162,18 @@ def test_update_task_order_with_existing_task_order(task_order):
assert workflow.task_order.start_date.strftime("%m/%d/%Y") == to_data["start_date"]
def test_other_text_not_saved_if_other_not_checked(task_order):
to_data = {
**TaskOrderFactory.dictionary(),
"complexity": ["conus", "other"],
"complexity_other": "quite complex",
}
workflow = UpdateTaskOrderWorkflow(
task_order.creator, to_data, task_order_id=task_order.id
)
workflow.update()
def test_invite_officers_to_task_order(task_order, queue):
to_data = {
**TaskOrderFactory.dictionary(),