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
121b3130
Commit
121b3130
authored
Dec 01, 2014
by
Jesse Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fixes to modulestore test refactoring
parent
bf3b87bc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
10 deletions
+6
-10
common/djangoapps/external_auth/tests/test_ssl.py
+1
-1
common/lib/xmodule/xmodule/modulestore/tests/django_utils.py
+4
-3
lms/djangoapps/courseware/tests/test_masquerade.py
+1
-1
lms/djangoapps/courseware/tests/test_module_render.py
+0
-3
lms/djangoapps/courseware/tests/test_navigation.py
+0
-2
No files found.
common/djangoapps/external_auth/tests/test_ssl.py
View file @
121b3130
...
...
@@ -17,11 +17,11 @@ from external_auth.models import ExternalAuthMap
import
external_auth.views
from
mock
import
Mock
from
xmodule.modulestore.tests.django_utils
import
TEST_DATA_MOCK_MODULESTORE
from
student.models
import
CourseEnrollment
from
student.roles
import
CourseStaffRole
from
student.tests.factories
import
UserFactory
from
xmodule.modulestore.tests.django_utils
import
ModuleStoreTestCase
from
xmodule.modulestore.tests.django_utils
import
TEST_DATA_MOCK_MODULESTORE
from
xmodule.modulestore.tests.factories
import
CourseFactory
FEATURES_WITH_SSL_AUTH
=
settings
.
FEATURES
.
copy
()
...
...
common/lib/xmodule/xmodule/modulestore/tests/django_utils.py
View file @
121b3130
...
...
@@ -43,9 +43,10 @@ def mixed_store_config(data_dir, mappings, include_xml=False, xml_course_dirs=No
xml_course_dirs (list): The directories containing XML courses to load from disk.
note: For the courses to be loaded into the XML modulestore and accessible do the following:
include_xml should be True
xml_course_dirs should be the list of courses you want to load
mappings should be configured, pointing the xml courses to the xml modulestore
* include_xml should be True
* xml_course_dirs should be the list of directories (relative to data_dir)
containing the courses you want to load
* mappings should be configured, pointing the xml courses to the xml modulestore
"""
stores
=
[
...
...
lms/djangoapps/courseware/tests/test_masquerade.py
View file @
121b3130
...
...
@@ -21,7 +21,7 @@ from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase
from
xmodule.modulestore.tests.django_utils
import
TEST_DATA_MIXED_GRADED_MODULESTORE
# TODO: the
abtest
in the sample course "graded" is currently preventing
# TODO: the
"abtest" node
in the sample course "graded" is currently preventing
# it from being successfully loaded in the mongo modulestore.
# Fix this testcase class to not depend on that course, and let it use
# the mocked modulestore instead of the XML.
...
...
lms/djangoapps/courseware/tests/test_module_render.py
View file @
121b3130
...
...
@@ -3,7 +3,6 @@ Test for lms courseware app, module render unit
"""
from
functools
import
partial
import
json
from
unittest
import
skip
import
ddt
from
django.http
import
Http404
,
HttpResponse
...
...
@@ -373,7 +372,6 @@ class TestTOC(ModuleStoreTestCase):
# - it loads the active version at the start of the bulk operation
# - it loads the course definition for inheritance, because it's outside
# the bulk-operation marker that loaded the course descriptor
@skip
@ddt.data
((
ModuleStoreEnum
.
Type
.
mongo
,
3
,
0
,
0
),
(
ModuleStoreEnum
.
Type
.
split
,
6
,
0
,
2
))
@ddt.unpack
def
test_toc_toy_from_chapter
(
self
,
default_ms
,
setup_finds
,
setup_sends
,
toc_finds
):
...
...
@@ -412,7 +410,6 @@ class TestTOC(ModuleStoreTestCase):
# - it loads the active version at the start of the bulk operation
# - it loads the course definition for inheritance, because it's outside
# the bulk-operation marker that loaded the course descriptor
@skip
@ddt.data
((
ModuleStoreEnum
.
Type
.
mongo
,
3
,
0
,
0
),
(
ModuleStoreEnum
.
Type
.
split
,
6
,
0
,
2
))
@ddt.unpack
def
test_toc_toy_from_section
(
self
,
default_ms
,
setup_finds
,
setup_sends
,
toc_finds
):
...
...
lms/djangoapps/courseware/tests/test_navigation.py
View file @
121b3130
...
...
@@ -2,7 +2,6 @@
This test file will run through some LMS test scenarios regarding access and navigation of the LMS
"""
import
time
import
unittest
from
django.conf
import
settings
from
django.core.urlresolvers
import
reverse
...
...
@@ -121,7 +120,6 @@ class TestNavigation(ModuleStoreTestCase, LoginEnrollmentTestCase):
self
.
assertTabActive
(
'progress'
,
response
)
self
.
assertTabInactive
(
'courseware'
,
response
)
@unittest.skip
@override_settings
(
SESSION_INACTIVITY_TIMEOUT_IN_SECONDS
=
1
)
def
test_inactive_session_timeout
(
self
):
"""
...
...
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