Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx
edx-platform
Commits
efec188b
Commit
efec188b
authored
Oct 17, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unit tests
parent
3c1aab80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
common/djangoapps/user_api/tests/test_views.py
+4
-1
No files found.
common/djangoapps/user_api/tests/test_views.py
View file @
efec188b
...
@@ -5,11 +5,12 @@ import base64
...
@@ -5,11 +5,12 @@ import base64
import
json
import
json
import
re
import
re
from
django.conf
import
settings
from
django.core.urlresolvers
import
reverse
from
django.core.urlresolvers
import
reverse
from
django.core
import
mail
from
django.core
import
mail
from
django.test
import
TestCase
from
django.test
import
TestCase
from
django.test.utils
import
override_settings
from
django.test.utils
import
override_settings
from
unittest
import
SkipTest
from
unittest
import
SkipTest
,
skipUnless
import
ddt
import
ddt
from
pytz
import
UTC
from
pytz
import
UTC
from
django_countries.countries
import
COUNTRIES
from
django_countries.countries
import
COUNTRIES
...
@@ -545,6 +546,7 @@ class PreferenceUsersListViewTest(UserApiTestCase):
...
@@ -545,6 +546,7 @@ class PreferenceUsersListViewTest(UserApiTestCase):
@ddt.ddt
@ddt.ddt
@skipUnless
(
settings
.
ROOT_URLCONF
==
'lms.urls'
,
'Test only valid in lms'
)
class
LoginSessionViewTest
(
ApiTestCase
):
class
LoginSessionViewTest
(
ApiTestCase
):
"""Tests for the login end-points of the user API. """
"""Tests for the login end-points of the user API. """
...
@@ -701,6 +703,7 @@ class LoginSessionViewTest(ApiTestCase):
...
@@ -701,6 +703,7 @@ class LoginSessionViewTest(ApiTestCase):
@ddt.ddt
@ddt.ddt
@skipUnless
(
settings
.
ROOT_URLCONF
==
'lms.urls'
,
'Test only valid in lms'
)
class
RegistrationViewTest
(
ApiTestCase
):
class
RegistrationViewTest
(
ApiTestCase
):
"""Tests for the registration end-points of the User API. """
"""Tests for the registration end-points of the User API. """
...
...
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