From 2440b9d9a308a7590fdb46152d6c803c4a43c425 Mon Sep 17 00:00:00 2001 From: Ben Adida <ben@adida.net> Date: Sat, 23 Apr 2016 18:02:34 +0000 Subject: [PATCH] added test for answer_url --- helios/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helios/tests.py b/helios/tests.py index 9389c4f..13557ae 100644 --- a/helios/tests.py +++ b/helios/tests.py @@ -581,7 +581,7 @@ class ElectionBlackboxTests(WebTest): # add questions response = self.client.post("/helios/elections/%s/save_questions" % election_id, { - 'questions_json': utils.to_json([{"answer_urls": [None,None], "answers": ["Alice", "Bob"], "choice_type": "approval", "max": 1, "min": 0, "question": "Who should be president?", "result_type": "absolute", "short_name": "Who should be president?", "tally_type": "homomorphic"}]), + 'questions_json': utils.to_json([{"answer_urls": ["http://example.com",None], "answers": ["Alice", "Bob"], "choice_type": "approval", "max": 1, "min": 0, "question": "Who should be president?", "result_type": "absolute", "short_name": "Who should be president?", "tally_type": "homomorphic"}]), 'csrf_token': self.client.session['csrf_token']}) self.assertContains(response, "SUCCESS") -- GitLab