Skip to content
Snippets Groups Projects
Commit 68cb994b authored by Ben Adida's avatar Ben Adida
Browse files

fixed tests

parent 4597e7d1
No related branches found
No related tags found
No related merge requests found
......@@ -618,8 +618,12 @@ class ElectionBlackboxTests(TestCase):
# log in
response = self.client.post("/helios/elections/%s/password_voter_login" % election_id, {
'voter_id' : username,
'password' : password
'password' : password,
'return_url' : "/helios/elections/%s/view" % election_id
})
# FIXME: probably better to fetch password_voter_login as a get and post the form obtained
# rather than assume return_url
self.assertRedirects(response, "/helios/elections/%s/view" % election_id)
self._cast_ballot(election_id, username, password, need_login = False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment