Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Helios Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Helios Server
Commits
802c350c
Commit
802c350c
authored
10 years ago
by
Ben Adida
Browse files
Options
Downloads
Patches
Plain Diff
difference in parsing false
parent
d36b5711
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
helios/tests.py
+5
-5
5 additions, 5 deletions
helios/tests.py
with
5 additions
and
5 deletions
helios/tests.py
+
5
−
5
View file @
802c350c
...
@@ -486,7 +486,7 @@ class ElectionBlackboxTests(WebTest):
...
@@ -486,7 +486,7 @@ class ElectionBlackboxTests(WebTest):
"
election_type
"
:
"
referendum
"
,
"
election_type
"
:
"
referendum
"
,
"
use_voter_aliases
"
:
"
0
"
,
"
use_voter_aliases
"
:
"
0
"
,
"
use_advanced_audit_features
"
:
"
1
"
,
"
use_advanced_audit_features
"
:
"
1
"
,
"
private_p
"
:
"
0
"
})
"
private_p
"
:
"
False
"
})
self
.
assertRedirects
(
response
,
"
/auth/?return_url=/helios/elections/new
"
)
self
.
assertRedirects
(
response
,
"
/auth/?return_url=/helios/elections/new
"
)
...
@@ -527,7 +527,7 @@ class ElectionBlackboxTests(WebTest):
...
@@ -527,7 +527,7 @@ class ElectionBlackboxTests(WebTest):
"
election_type
"
:
"
referendum
"
,
"
election_type
"
:
"
referendum
"
,
"
use_voter_aliases
"
:
"
0
"
,
"
use_voter_aliases
"
:
"
0
"
,
"
use_advanced_audit_features
"
:
"
1
"
,
"
use_advanced_audit_features
"
:
"
1
"
,
"
private_p
"
:
"
0
"
}
"
private_p
"
:
"
False
"
}
# override with the given
# override with the given
full_election_params
.
update
(
election_params
)
full_election_params
.
update
(
election_params
)
...
@@ -757,7 +757,7 @@ class ElectionBlackboxTests(WebTest):
...
@@ -757,7 +757,7 @@ class ElectionBlackboxTests(WebTest):
def
test_do_complete_election_private
(
self
):
def
test_do_complete_election_private
(
self
):
# private election
# private election
election_id
,
username
,
password
=
self
.
_setup_complete_election
({
'
private_p
'
:
"
1
"
})
election_id
,
username
,
password
=
self
.
_setup_complete_election
({
'
private_p
'
:
"
True
"
})
# get the password_voter_login_form via the front page
# get the password_voter_login_form via the front page
# (which will test that redirects are doing the right thing)
# (which will test that redirects are doing the right thing)
...
@@ -788,10 +788,10 @@ class ElectionBlackboxTests(WebTest):
...
@@ -788,10 +788,10 @@ class ElectionBlackboxTests(WebTest):
"
election_type
"
:
"
election
"
,
"
election_type
"
:
"
election
"
,
"
use_voter_aliases
"
:
"
0
"
,
"
use_voter_aliases
"
:
"
0
"
,
"
use_advanced_audit_features
"
:
"
1
"
,
"
use_advanced_audit_features
"
:
"
1
"
,
"
private_p
"
:
"
0
"
})
"
private_p
"
:
"
False
"
})
election_id
=
re
.
match
(
"
(.*)/elections/(.*)/view
"
,
response
[
'
Location
'
]).
group
(
2
)
election_id
=
re
.
match
(
"
(.*)/elections/(.*)/view
"
,
response
[
'
Location
'
]).
group
(
2
)
# update eligiblity
# update eligiblity
response
=
self
.
client
.
post
(
"
/helios/elections/%s/voters/eligibility
"
%
election_id
,
{
response
=
self
.
client
.
post
(
"
/helios/elections/%s/voters/eligibility
"
%
election_id
,
{
"
csrf_token
"
:
self
.
client
.
session
[
'
csrf_token
'
],
"
csrf_token
"
:
self
.
client
.
session
[
'
csrf_token
'
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment