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
f0fb620b
Commit
f0fb620b
authored
Jun 18, 2013
by
lapentab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes missing refactoring
parent
b9ca9a84
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
common/lib/xmodule/xmodule/tests/test_conditional.py
+0
-4
common/lib/xmodule/xmodule/tests/test_logic.py
+2
-2
lms/djangoapps/courseware/tests/test_videoalpha_xml.py
+2
-2
No files found.
common/lib/xmodule/xmodule/tests/test_conditional.py
View file @
f0fb620b
...
...
@@ -107,11 +107,7 @@ class ConditionalModuleBasicTest(unittest.TestCase):
def
test_icon_class
(
self
):
'''verify that get_icon_class works independent of condition satisfaction'''
<<<<<<<
HEAD
modules
=
ConditionalFactory
.
create
(
self
.
get_test_system
)
=======
modules
=
ConditionalFactory
.
create
(
self
.
test_system
)
>>>>>>>
master
for
attempted
in
[
"false"
,
"true"
]:
for
icon_class
in
[
'other'
,
'problem'
,
'video'
]:
modules
[
'source_module'
]
.
is_attempted
=
attempted
...
...
common/lib/xmodule/xmodule/tests/test_logic.py
View file @
f0fb620b
...
...
@@ -8,7 +8,7 @@ import unittest
from
xmodule.poll_module
import
PollDescriptor
from
xmodule.conditional_module
import
ConditionalDescriptor
from
xmodule.word_cloud_module
import
WordCloudDescriptor
from
xmodule.tests
import
test_system
from
xmodule.tests
import
get_
test_system
class
PostData
:
"""Class which emulate postdata."""
...
...
@@ -30,7 +30,7 @@ class LogicTest(unittest.TestCase):
"""Empty object."""
pass
self
.
system
=
test_system
()
self
.
system
=
get_
test_system
()
self
.
descriptor
=
EmptyClass
()
self
.
xmodule_class
=
self
.
descriptor_class
.
module_class
...
...
lms/djangoapps/courseware/tests/test_videoalpha_xml.py
View file @
f0fb620b
...
...
@@ -22,7 +22,7 @@ from django.conf import settings
from
xmodule.videoalpha_module
import
VideoAlphaDescriptor
,
VideoAlphaModule
from
xmodule.modulestore
import
Location
from
xmodule.tests
import
test_system
from
xmodule.tests
import
get_
test_system
from
xmodule.tests.test_logic
import
LogicTest
...
...
@@ -58,7 +58,7 @@ class VideoAlphaFactory(object):
descriptor
=
Mock
(
weight
=
"1"
)
system
=
test_system
()
system
=
get_
test_system
()
system
.
render_template
=
lambda
template
,
context
:
context
VideoAlphaModule
.
location
=
location
module
=
VideoAlphaModule
(
system
,
descriptor
,
model_data
)
...
...
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