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
32a29f4f
Commit
32a29f4f
authored
Mar 01, 2016
by
Renzo Lucioni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert SysadminBaseTestCase to SharedModuleStoreTestCase
parent
f6cdcdf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lms/djangoapps/dashboard/tests/test_sysadmin.py
+3
-3
No files found.
lms/djangoapps/dashboard/tests/test_sysadmin.py
View file @
32a29f4f
...
...
@@ -28,7 +28,7 @@ from external_auth.models import ExternalAuthMap
from
student.roles
import
CourseStaffRole
,
GlobalStaff
from
student.tests.factories
import
UserFactory
from
xmodule.modulestore.django
import
modulestore
from
xmodule.modulestore.tests.django_utils
import
ModuleStoreTestCase
from
xmodule.modulestore.tests.django_utils
import
Shared
ModuleStoreTestCase
from
xmodule.modulestore.tests.mongo_connection
import
MONGO_PORT_NUM
,
MONGO_HOST
...
...
@@ -44,7 +44,7 @@ FEATURES_WITH_SSL_AUTH = settings.FEATURES.copy()
FEATURES_WITH_SSL_AUTH
[
'AUTH_USE_CERTIFICATES'
]
=
True
class
SysadminBaseTestCase
(
ModuleStoreTestCase
):
class
SysadminBaseTestCase
(
Shared
ModuleStoreTestCase
):
"""
Base class with common methods used in XML and Mongo tests
"""
...
...
@@ -55,7 +55,7 @@ class SysadminBaseTestCase(ModuleStoreTestCase):
def
setUp
(
self
):
"""Setup test case by adding primary user."""
super
(
SysadminBaseTestCase
,
self
)
.
setUp
(
create_user
=
False
)
super
(
SysadminBaseTestCase
,
self
)
.
setUp
()
self
.
user
=
UserFactory
.
create
(
username
=
'test_user'
,
email
=
'test_user+sysadmin@edx.org'
,
password
=
'foo'
)
...
...
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