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
dad4b673
Commit
dad4b673
authored
Mar 27, 2015
by
Adam
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7505 from edx/release
Release
parents
f441671c
0c31da2a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
5 deletions
+18
-5
cms/djangoapps/contentstore/tests/test_import.py
+2
-1
cms/djangoapps/contentstore/tests/test_libraries.py
+2
-1
openedx/core/djangoapps/content/course_structures/signals.py
+1
-1
openedx/core/djangoapps/content/course_structures/tests.py
+12
-1
requirements/edx/github.txt
+1
-1
No files found.
cms/djangoapps/contentstore/tests/test_import.py
View file @
dad4b673
...
...
@@ -11,6 +11,7 @@ from django.conf import settings
import
ddt
import
copy
from
openedx.core.djangoapps.content.course_structures.tests
import
SignalDisconnectTestMixin
from
xmodule.modulestore.tests.django_utils
import
ModuleStoreTestCase
from
xmodule.modulestore
import
ModuleStoreEnum
from
xmodule.modulestore.django
import
modulestore
...
...
@@ -28,7 +29,7 @@ TEST_DATA_DIR = settings.COMMON_TEST_DATA_ROOT
@ddt.ddt
@override_settings
(
CONTENTSTORE
=
TEST_DATA_CONTENTSTORE
)
class
ContentStoreImportTest
(
ModuleStoreTestCase
):
class
ContentStoreImportTest
(
SignalDisconnectTestMixin
,
ModuleStoreTestCase
):
"""
Tests that rely on the toy and test_import_course courses.
NOTE: refactor using CourseFactory so they do not.
...
...
cms/djangoapps/contentstore/tests/test_libraries.py
View file @
dad4b673
...
...
@@ -19,6 +19,7 @@ from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase
from
xmodule.modulestore.tests.factories
import
CourseFactory
,
ItemFactory
from
mock
import
Mock
from
opaque_keys.edx.locator
import
CourseKey
,
LibraryLocator
from
openedx.core.djangoapps.content.course_structures.tests
import
SignalDisconnectTestMixin
class
LibraryTestCase
(
ModuleStoreTestCase
):
...
...
@@ -457,7 +458,7 @@ class TestLibraries(LibraryTestCase):
@ddt.ddt
class
TestLibraryAccess
(
LibraryTestCase
):
class
TestLibraryAccess
(
SignalDisconnectTestMixin
,
LibraryTestCase
):
"""
Test Roles and Permissions related to Content Libraries
"""
...
...
openedx/core/djangoapps/content/course_structures/signals.py
View file @
dad4b673
...
...
@@ -10,4 +10,4 @@ def listen_for_course_publish(sender, course_key, **kwargs): # pylint: disable=
# Note: The countdown=0 kwarg is set to to ensure the method below does not attempt to access the course
# before the signal emitter has finished all operations. This is also necessary to ensure all tests pass.
update_course_structure
.
delay
(
unicode
(
course_key
)
,
countdown
=
0
)
update_course_structure
.
apply_async
([
unicode
(
course_key
)]
,
countdown
=
0
)
openedx/core/djangoapps/content/course_structures/tests.py
View file @
dad4b673
import
json
from
xmodule.modulestore.django
import
SignalHandler
from
xmodule.modulestore.tests.django_utils
import
ModuleStoreTestCase
from
xmodule.modulestore.tests.factories
import
CourseFactory
,
ItemFactory
from
openedx.core.djangoapps.content.course_structures.models
import
CourseStructure
from
openedx.core.djangoapps.content.course_structures.signals
import
listen_for_course_publish
from
openedx.core.djangoapps.content.course_structures.tasks
import
_generate_course_structure
,
update_course_structure
class
SignalDisconnectTestMixin
(
object
):
"""
Mixin for tests to disable calls to signals.listen_for_course_publish when the course_published signal is fired.
"""
def
setUp
(
self
):
super
(
SignalDisconnectTestMixin
,
self
)
.
setUp
()
SignalHandler
.
course_published
.
disconnect
(
listen_for_course_publish
)
class
CourseStructureTaskTests
(
ModuleStoreTestCase
):
def
setUp
(
self
,
**
kwargs
):
super
(
CourseStructureTaskTests
,
self
)
.
setUp
()
...
...
requirements/edx/github.txt
View file @
dad4b673
...
...
@@ -29,7 +29,7 @@ git+https://github.com/mitocw/django-cas.git@60a5b8e5a62e63e0d5d224a87f0b489201a
-e git+https://github.com/edx/bok-choy.git@82d2f4b72e807b10d112179c0a4abd810a001b82#egg=bok_choy
-e git+https://github.com/edx-solutions/django-splash.git@7579d052afcf474ece1239153cffe1c89935bc4f#egg=django-splash
-e git+https://github.com/edx/acid-block.git@e46f9cda8a03e121a00c7e347084d142d22ebfb7#egg=acid-xblock
-e git+https://github.com/edx/edx-ora2.git@release-2015-03-
16T17.59
#egg=edx-ora2
-e git+https://github.com/edx/edx-ora2.git@release-2015-03-
27T14.32
#egg=edx-ora2
-e git+https://github.com/edx/edx-submissions.git@8fb070d2a3087dd7656d27022e550d12e3b85ba3#egg=edx-submissions
-e git+https://github.com/edx/opaque-keys.git@1254ed4d615a428591850656f39f26509b86d30a#egg=opaque-keys
-e git+https://github.com/edx/ease.git@97de68448e5495385ba043d3091f570a699d5b5f#egg=ease
...
...
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