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
a1a9a2a5
Commit
a1a9a2a5
authored
Aug 25, 2015
by
David Ormsbee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert UpdateEmailOptInTestCase to use SharedModuleStoreTestCase
parent
fdfaa565
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
openedx/core/djangoapps/user_api/tests/test_views.py
+8
-4
No files found.
openedx/core/djangoapps/user_api/tests/test_views.py
View file @
a1a9a2a5
...
...
@@ -31,7 +31,7 @@ from third_party_auth.tests.utils import (
ThirdPartyOAuthTestMixin
,
ThirdPartyOAuthTestMixinFacebook
,
ThirdPartyOAuthTestMixinGoogle
)
from
xmodule.modulestore.tests.factories
import
CourseFactory
from
xmodule.modulestore.tests.django_utils
import
ModuleStoreTestCase
from
xmodule.modulestore.tests.django_utils
import
Shared
ModuleStoreTestCase
from
..accounts.api
import
get_account_settings
from
..accounts
import
(
NAME_MAX_LENGTH
,
EMAIL_MIN_LENGTH
,
EMAIL_MAX_LENGTH
,
PASSWORD_MIN_LENGTH
,
PASSWORD_MAX_LENGTH
,
...
...
@@ -1714,20 +1714,24 @@ class TestGoogleRegistrationView(
@ddt.ddt
class
UpdateEmailOptInTestCase
(
ApiTestCase
,
ModuleStoreTestCase
):
class
UpdateEmailOptInTestCase
(
ApiTestCase
,
Shared
ModuleStoreTestCase
):
"""Tests the UpdateEmailOptInPreference view. """
USERNAME
=
"steve"
EMAIL
=
"steve@isawesome.com"
PASSWORD
=
"steveopolis"
@classmethod
def
setUpClass
(
cls
):
super
(
UpdateEmailOptInTestCase
,
cls
)
.
setUpClass
()
cls
.
course
=
CourseFactory
.
create
()
cls
.
url
=
reverse
(
"preferences_email_opt_in"
)
def
setUp
(
self
):
""" Create a course and user, then log in. """
super
(
UpdateEmailOptInTestCase
,
self
)
.
setUp
()
self
.
course
=
CourseFactory
.
create
()
self
.
user
=
UserFactory
.
create
(
username
=
self
.
USERNAME
,
email
=
self
.
EMAIL
,
password
=
self
.
PASSWORD
)
self
.
client
.
login
(
username
=
self
.
USERNAME
,
password
=
self
.
PASSWORD
)
self
.
url
=
reverse
(
"preferences_email_opt_in"
)
@ddt.data
(
(
u"True"
,
u"True"
),
...
...
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