1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

Flake8 fixes.

This commit is contained in:
Aaron Tan 2016-09-23 09:27:18 -04:00
parent 535f979fd7
commit 33e3263310

View File

@ -61,21 +61,21 @@ def test_job_template_survey_variable_validation(job_template_factory):
) )
obj = objects.job_template obj = objects.job_template
obj.survey_spec = { obj.survey_spec = {
"description": "", "description": "",
"spec": [ "spec": [
{ {
"required": True, "required": True,
"min": 0, "min": 0,
"default": "5", "default": "5",
"max": 1024, "max": 1024,
"question_description": "", "question_description": "",
"choices": "", "choices": "",
"variable": "a", "variable": "a",
"question_name": "Whosyourdaddy", "question_name": "Whosyourdaddy",
"type": "text" "type": "text"
} }
], ],
"name": "" "name": ""
} }
obj.survey_enabled = True obj.survey_enabled = True
assert obj.survey_variable_validation({"a": 5}) == ["Value 5 for 'a' expected to be a string."] assert obj.survey_variable_validation({"a": 5}) == ["Value 5 for 'a' expected to be a string."]