Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-openid-auth
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-openid-auth
Commits
75be5e3c
Commit
75be5e3c
authored
Mar 15, 2013
by
Anthony Lenton
Browse files
Options
Browse Files
Download
Plain Diff
[r=elachuni] Fixes admin test where redirect url doesn't match as expected
parents
b1bb5c26
5d21b8ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
django_openid_auth/tests/test_admin.py
+2
-3
No files found.
django_openid_auth/tests/test_admin.py
View file @
75be5e3c
...
@@ -29,14 +29,12 @@
...
@@ -29,14 +29,12 @@
Tests for the django_openid_auth Admin login form replacement.
Tests for the django_openid_auth Admin login form replacement.
"""
"""
import
os
import
unittest
import
unittest
from
django.conf
import
settings
from
django.conf
import
settings
from
django.contrib.auth.models
import
User
,
AnonymousUser
from
django.contrib.auth.models
import
User
,
AnonymousUser
settings
.
OPENID_USE_AS_ADMIN_LOGIN
=
True
settings
.
OPENID_USE_AS_ADMIN_LOGIN
=
True
from
django_openid_auth
import
admin
from
django.test
import
TestCase
from
django.test
import
TestCase
...
@@ -80,7 +78,8 @@ class SiteAdminTests(TestCase):
...
@@ -80,7 +78,8 @@ class SiteAdminTests(TestCase):
"""
"""
response
=
self
.
client
.
get
(
'/admin/'
)
response
=
self
.
client
.
get
(
'/admin/'
)
self
.
assertEqual
(
302
,
response
.
status_code
)
self
.
assertEqual
(
302
,
response
.
status_code
)
self
.
assertEqual
(
'http://testserver/openid/login/?next=/admin/'
,
self
.
assertEqual
(
'http://testserver'
+
getattr
(
settings
,
'LOGIN_URL'
,
'/openid/login'
)
+
'?next=/admin/'
,
response
[
'Location'
])
response
[
'Location'
])
...
...
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