Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
c177e8d9
Commit
c177e8d9
authored
Jul 01, 2013
by
Kostas Papadimitriou
Browse files
astakos: Update tests
fix pithos:// redirect params extraction
parent
7cc443ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/tests/auth.py
View file @
c177e8d9
...
...
@@ -1339,7 +1339,8 @@ class TestWebloginRedirect(TestCase):
# scheme preserved
self
.
assertTrue
(
url
.
startswith
(
'pithos://localhost/'
))
# redirect contains token param
params
=
urlparse
.
urlparse
(
url
,
'https'
).
query
params
=
urlparse
.
urlparse
(
url
.
replace
(
'pithos'
,
'https'
),
scheme
=
'https'
).
query
params
=
urlparse
.
parse_qs
(
params
)
self
.
assertEqual
(
params
[
'token'
][
0
],
AstakosUser
.
objects
.
get
().
auth_token
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment