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
0fa86e3d
Commit
0fa86e3d
authored
Apr 01, 2015
by
Dino Cikatic
Committed by
Martyn James
Apr 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SOL-570 Remove djangotracker from common imports
parent
953581e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
7 deletions
+1
-7
common/lib/xmodule/xmodule/tests/__init__.py
+1
-7
No files found.
common/lib/xmodule/xmodule/tests/__init__.py
View file @
0fa86e3d
...
...
@@ -16,8 +16,6 @@ import traceback
import
unittest
from
contextlib
import
contextmanager
,
nested
from
eventtracking
import
tracker
from
eventtracking.django
import
DjangoTracker
from
functools
import
wraps
from
lazy
import
lazy
from
mock
import
Mock
,
patch
...
...
@@ -37,7 +35,6 @@ from xmodule.modulestore.mongo.draft import DraftModuleStore
from
xmodule.modulestore.xml
import
CourseLocationManager
from
xmodule.x_module
import
ModuleSystem
,
XModuleDescriptor
,
XModuleMixin
MODULE_DIR
=
path
(
__file__
)
.
dirname
()
# Location of common test DATA directory
# '../../../../edx-platform/common/test/data/'
...
...
@@ -58,14 +55,11 @@ class TestModuleSystem(ModuleSystem): # pylint: disable=abstract-method
"""
ModuleSystem for testing
"""
@patch
(
'eventtracking.tracker.emit'
)
def
__init__
(
self
,
mock_emit
,
**
kwargs
):
# pylint: disable=unused-argument
def
__init__
(
self
,
**
kwargs
):
# pylint: disable=unused-argument
id_manager
=
CourseLocationManager
(
kwargs
[
'course_id'
])
kwargs
.
setdefault
(
'id_reader'
,
id_manager
)
kwargs
.
setdefault
(
'id_generator'
,
id_manager
)
kwargs
.
setdefault
(
'services'
,
{})
.
setdefault
(
'field-data'
,
DictFieldData
({}))
self
.
tracker
=
DjangoTracker
()
tracker
.
register_tracker
(
self
.
tracker
)
super
(
TestModuleSystem
,
self
)
.
__init__
(
**
kwargs
)
def
handler_url
(
self
,
block
,
handler
,
suffix
=
''
,
query
=
''
,
thirdparty
=
False
):
...
...
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