Handle formdata processing in a property

This commit is contained in:
Montana
2019-01-07 09:33:08 -05:00
parent 1fcd27a4e0
commit c70202c33c
5 changed files with 25 additions and 26 deletions

View File

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