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
181b1e97
Commit
181b1e97
authored
Jun 14, 2013
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused imports from common, as reported by pylint.
parent
c53fff9f
Hide whitespace changes
Inline
Side-by-side
Showing
50 changed files
with
25 additions
and
146 deletions
+25
-146
common/djangoapps/cache_toolbox/core.py
+0
-1
common/djangoapps/course_groups/cohorts.py
+1
-2
common/djangoapps/course_groups/views.py
+2
-8
common/djangoapps/mitxmako/makoloader.py
+0
-1
common/djangoapps/status/status.py
+0
-1
common/djangoapps/student/management/commands/6002exportusers.py
+0
-5
common/djangoapps/student/management/commands/6002importusers.py
+0
-6
common/djangoapps/student/management/commands/assigngroups.py
+0
-5
common/djangoapps/student/management/commands/create_random_users.py
+1
-3
common/djangoapps/student/management/commands/emaillist.py
+0
-5
common/djangoapps/student/management/commands/massemail.py
+0
-5
common/djangoapps/student/management/commands/massemailtxt.py
+0
-3
common/djangoapps/student/management/commands/pearson_dump.py
+1
-1
common/djangoapps/student/management/commands/pearson_import_conf_zip.py
+1
-4
common/djangoapps/student/management/commands/tests/test_pearson.py
+1
-1
common/djangoapps/student/management/commands/userinfo.py
+0
-5
common/djangoapps/student/views.py
+2
-6
common/djangoapps/terrain/browser.py
+3
-3
common/djangoapps/terrain/course_helpers.py
+1
-2
common/djangoapps/terrain/steps.py
+1
-1
common/djangoapps/track/middleware.py
+0
-2
common/djangoapps/util/models.py
+0
-2
common/djangoapps/util/tests/test_memcache.py
+0
-1
common/djangoapps/util/tests/test_submit_feedback.py
+0
-1
common/djangoapps/util/views.py
+2
-10
common/lib/capa/capa/checker.py
+0
-1
common/lib/capa/capa/customrender.py
+0
-2
common/lib/capa/capa/responsetypes.py
+0
-1
common/lib/capa/capa/tests/test_html_render.py
+0
-1
common/lib/capa/capa/util.py
+1
-1
common/lib/chem/chem/chemcalc.py
+2
-11
common/lib/symmath/symmath/formula.py
+1
-3
common/lib/symmath/symmath/symmath_check.py
+0
-4
common/lib/xmodule/xmodule/modulestore/tests/factories.py
+0
-1
common/lib/xmodule/xmodule/modulestore/tests/test_modulestore.py
+2
-2
common/lib/xmodule/xmodule/modulestore/tests/test_mongo.py
+0
-1
common/lib/xmodule/xmodule/open_ended_grading_classes/combined_open_ended_modulev1.py
+0
-3
common/lib/xmodule/xmodule/open_ended_grading_classes/grading_service_module.py
+0
-1
common/lib/xmodule/xmodule/open_ended_grading_classes/open_ended_image_submission.py
+0
-2
common/lib/xmodule/xmodule/open_ended_grading_classes/open_ended_module.py
+0
-2
common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py
+0
-6
common/lib/xmodule/xmodule/progress.py
+0
-1
common/lib/xmodule/xmodule/schematic_module.py
+0
-1
common/lib/xmodule/xmodule/template_module.py
+0
-1
common/lib/xmodule/xmodule/tests/test_html_module.py
+0
-1
common/lib/xmodule/xmodule/tests/test_peer_grading.py
+0
-4
common/lib/xmodule/xmodule/tests/test_randomize_module.py
+1
-9
common/lib/xmodule/xmodule/tests/test_stringify.py
+1
-1
common/lib/xmodule/xmodule/tests/test_util_open_ended.py
+1
-1
common/lib/xmodule/xmodule/timelimit_module.py
+0
-1
No files found.
common/djangoapps/cache_toolbox/core.py
View file @
181b1e97
...
...
@@ -12,7 +12,6 @@ from django.core.cache import cache
from
django.db
import
DEFAULT_DB_ALIAS
from
.
import
app_settings
from
xmodule.contentstore.content
import
StaticContent
def
get_instance
(
model
,
instance_or_pk
,
timeout
=
None
,
using
=
None
):
...
...
common/djangoapps/course_groups/cohorts.py
View file @
181b1e97
...
...
@@ -3,7 +3,6 @@ This file contains the logic for cohort groups, as exposed internally to the
forums, and to the cohort admin views.
"""
from
django.contrib.auth.models
import
User
from
django.http
import
Http404
import
logging
import
random
...
...
@@ -27,7 +26,7 @@ def local_random():
"""
# ironic, isn't it?
global
_local_random
if
_local_random
is
None
:
_local_random
=
random
.
Random
()
...
...
common/djangoapps/course_groups/views.py
View file @
181b1e97
from
django_future.csrf
import
ensure_csrf_cookie
from
django.contrib.auth.decorators
import
login_required
from
django.views.decorators.http
import
require_POST
from
django.contrib.auth.models
import
User
from
django.core.context_processors
import
csrf
from
django.core.paginator
import
Paginator
,
EmptyPage
,
PageNotAnInteger
from
django.core.urlresolvers
import
reverse
from
django.http
import
HttpResponse
,
HttpResponseForbidden
,
Http404
from
django.shortcuts
import
redirect
from
django.http
import
HttpResponse
import
json
import
logging
import
re
from
courseware.courses
import
get_course_with_access
from
mitxmako.shortcuts
import
render_to_response
,
render_to_string
from
mitxmako.shortcuts
import
render_to_response
from
.models
import
CourseUserGroup
from
.
import
cohorts
import
track.views
log
=
logging
.
getLogger
(
__name__
)
...
...
common/djangoapps/mitxmako/makoloader.py
View file @
181b1e97
...
...
@@ -7,7 +7,6 @@ from django.template.loaders.filesystem import Loader as FilesystemLoader
from
django.template.loaders.app_directories
import
Loader
as
AppDirectoriesLoader
from
mitxmako.template
import
Template
import
mitxmako.middleware
import
tempdir
...
...
common/djangoapps/status/status.py
View file @
181b1e97
...
...
@@ -6,7 +6,6 @@ from django.conf import settings
import
json
import
logging
import
os
import
sys
log
=
logging
.
getLogger
(
__name__
)
...
...
common/djangoapps/student/management/commands/6002exportusers.py
View file @
181b1e97
...
...
@@ -11,12 +11,7 @@
import
datetime
import
json
import
os.path
from
lxml
import
etree
from
django.core.management.base
import
BaseCommand
from
django.conf
import
settings
from
django.contrib.auth.models
import
User
from
student.models
import
UserProfile
...
...
common/djangoapps/student/management/commands/6002importusers.py
View file @
181b1e97
...
...
@@ -3,17 +3,11 @@
## See export for more info
import
datetime
import
json
import
dateutil.parser
import
os.path
from
lxml
import
etree
from
django.core.management.base
import
BaseCommand
from
django.conf
import
settings
from
django.contrib.auth.models
import
User
from
student.models
import
UserProfile
...
...
common/djangoapps/student/management/commands/assigngroups.py
View file @
181b1e97
import
os.path
from
lxml
import
etree
from
django.core.management.base
import
BaseCommand
from
django.conf
import
settings
from
django.contrib.auth.models
import
User
import
mitxmako.middleware
as
middleware
...
...
common/djangoapps/student/management/commands/create_random_users.py
View file @
181b1e97
...
...
@@ -2,9 +2,7 @@
## A script to create some dummy users
from
django.core.management.base
import
BaseCommand
from
django.conf
import
settings
from
django.contrib.auth.models
import
User
from
student.models
import
UserProfile
,
CourseEnrollment
from
student.models
import
CourseEnrollment
from
student.views
import
_do_create_account
,
get_random_post_override
...
...
common/djangoapps/student/management/commands/emaillist.py
View file @
181b1e97
import
os.path
from
lxml
import
etree
from
django.core.management.base
import
BaseCommand
from
django.conf
import
settings
from
django.contrib.auth.models
import
User
import
mitxmako.middleware
as
middleware
...
...
common/djangoapps/student/management/commands/massemail.py
View file @
181b1e97
import
os.path
from
lxml
import
etree
from
django.core.management.base
import
BaseCommand
from
django.conf
import
settings
from
django.contrib.auth.models
import
User
import
mitxmako.middleware
as
middleware
...
...
common/djangoapps/student/management/commands/massemailtxt.py
View file @
181b1e97
import
os.path
import
time
from
lxml
import
etree
from
django.core.management.base
import
BaseCommand
from
django.conf
import
settings
from
django.contrib.auth.models
import
User
import
mitxmako.middleware
as
middleware
...
...
common/djangoapps/student/management/commands/pearson_dump.py
View file @
181b1e97
...
...
@@ -2,7 +2,7 @@ from optparse import make_option
from
json
import
dump
from
datetime
import
datetime
from
django.core.management.base
import
BaseCommand
,
CommandError
from
django.core.management.base
import
BaseCommand
from
student.models
import
TestCenterRegistration
...
...
common/djangoapps/student/management/commands/pearson_import_conf_zip.py
View file @
181b1e97
...
...
@@ -3,11 +3,8 @@ import csv
from
zipfile
import
ZipFile
,
is_zipfile
from
time
import
strptime
,
strftime
from
collections
import
OrderedDict
from
datetime
import
datetime
from
os.path
import
isdir
from
optparse
import
make_option
from
dogapi
import
dog_http_api
,
dog_stats_api
from
dogapi
import
dog_http_api
from
django.core.management.base
import
BaseCommand
,
CommandError
from
django.conf
import
settings
...
...
common/djangoapps/student/management/commands/tests/test_pearson.py
View file @
181b1e97
...
...
@@ -14,7 +14,7 @@ from django.test import TestCase
from
django.core.management
import
call_command
from
nose.plugins.skip
import
SkipTest
from
student.models
import
User
,
TestCenter
Registration
,
TestCenter
User
,
get_testcenter_registration
from
student.models
import
User
,
TestCenterUser
,
get_testcenter_registration
log
=
logging
.
getLogger
(
__name__
)
...
...
common/djangoapps/student/management/commands/userinfo.py
View file @
181b1e97
import
os.path
from
lxml
import
etree
from
django.core.management.base
import
BaseCommand
from
django.conf
import
settings
from
django.contrib.auth.models
import
User
import
mitxmako.middleware
as
middleware
...
...
common/djangoapps/student/views.py
View file @
181b1e97
...
...
@@ -4,7 +4,6 @@ import json
import
logging
import
random
import
string
import
sys
import
urllib
import
uuid
import
time
...
...
@@ -20,9 +19,9 @@ from django.core.mail import send_mail
from
django.core.urlresolvers
import
reverse
from
django.core.validators
import
validate_email
,
validate_slug
,
ValidationError
from
django.db
import
IntegrityError
,
transaction
from
django.http
import
HttpResponse
,
HttpResponseBadRequest
,
HttpResponseForbidden
,
HttpResponseNotAllowed
,
Http
ResponseRedirect
,
Http
404
from
django.http
import
HttpResponse
,
HttpResponseBadRequest
,
HttpResponseForbidden
,
HttpResponseNotAllowed
,
Http404
from
django.shortcuts
import
redirect
from
django_future.csrf
import
ensure_csrf_cookie
,
csrf_exempt
from
django_future.csrf
import
ensure_csrf_cookie
from
django.utils.http
import
cookie_date
from
mitxmako.shortcuts
import
render_to_response
,
render_to_string
...
...
@@ -39,14 +38,11 @@ from certificates.models import CertificateStatuses, certificate_status_for_stud
from
xmodule.course_module
import
CourseDescriptor
from
xmodule.modulestore.exceptions
import
ItemNotFoundError
from
xmodule.modulestore.django
import
modulestore
from
xmodule.modulestore
import
Location
from
collections
import
namedtuple
from
courseware.courses
import
get_courses
,
sort_by_announcement
from
courseware.access
import
has_access
from
courseware.views
import
get_module_for_descriptor
,
jump_to
from
courseware.model_data
import
ModelDataCache
from
statsd
import
statsd
from
pytz
import
UTC
...
...
common/djangoapps/terrain/browser.py
View file @
181b1e97
...
...
@@ -4,7 +4,6 @@ Browser set up for acceptance tests.
#pylint: disable=E1101
#pylint: disable=W0613
#pylint: disable=W0611
from
lettuce
import
before
,
after
,
world
from
splinter.browser
import
Browser
...
...
@@ -15,8 +14,9 @@ from selenium.common.exceptions import WebDriverException
# Let the LMS and CMS do their one-time setup
# For example, setting up mongo caches
from
lms
import
one_time_startup
from
cms
import
one_time_startup
# These names aren't used, but do important work on import.
from
lms
import
one_time_startup
# pylint: disable=W0611
from
cms
import
one_time_startup
# pylint: disable=W0611
# There is an import issue when using django-staticfiles with lettuce
# Lettuce assumes that we are using django.contrib.staticfiles,
...
...
common/djangoapps/terrain/course_helpers.py
View file @
181b1e97
# pylint: disable=C0111
# pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
from
.factories
import
*
from
django.conf
import
settings
from
django.http
import
HttpRequest
...
...
@@ -15,7 +15,6 @@ from xmodule.templates import update_templates
from
bs4
import
BeautifulSoup
import
os.path
from
urllib
import
quote_plus
from
lettuce.django
import
django_url
@world.absorb
...
...
common/djangoapps/terrain/steps.py
View file @
181b1e97
...
...
@@ -15,7 +15,7 @@ from lettuce import world, step
from
.course_helpers
import
*
from
.ui_helpers
import
*
from
lettuce.django
import
django_url
from
nose.tools
import
assert_equals
,
assert_in
from
nose.tools
import
assert_equals
from
logging
import
getLogger
logger
=
getLogger
(
__name__
)
...
...
common/djangoapps/track/middleware.py
View file @
181b1e97
import
json
from
django.conf
import
settings
import
views
...
...
common/djangoapps/util/models.py
View file @
181b1e97
from
django.db
import
models
# Create your models here.
common/djangoapps/util/tests/test_memcache.py
View file @
181b1e97
...
...
@@ -4,7 +4,6 @@ Tests for memcache in util app
from
django.test
import
TestCase
from
django.core.cache
import
get_cache
from
django.conf
import
settings
from
util.memcache
import
safe_key
...
...
common/djangoapps/util/tests/test_submit_feedback.py
View file @
181b1e97
"""Tests for the Zendesk"""
from
django.conf
import
settings
from
django.contrib.auth.models
import
AnonymousUser
from
django.http
import
Http404
from
django.test
import
TestCase
...
...
common/djangoapps/util/views.py
View file @
181b1e97
import
datetime
import
json
import
logging
import
pprint
import
sys
from
django.conf
import
settings
from
django.contrib.auth.models
import
User
from
django.core.context_processors
import
csrf
from
django.core.mail
import
send_mail
from
django.core.validators
import
ValidationError
,
validate_email
from
django.http
import
Http404
,
HttpResponse
,
HttpResponseBadRequest
,
HttpResponseNotAllowed
,
HttpResponseServerError
from
django.shortcuts
import
redirect
from
django_future.csrf
import
ensure_csrf_cookie
from
django.http
import
Http404
,
HttpResponse
,
HttpResponseNotAllowed
from
dogapi
import
dog_stats_api
from
mitxmako.shortcuts
import
render_to_response
,
render_to_string
from
urllib
import
urlencode
from
mitxmako.shortcuts
import
render_to_response
import
zendesk
import
calc
...
...
common/lib/capa/capa/checker.py
View file @
181b1e97
...
...
@@ -10,7 +10,6 @@ import sys
from
path
import
path
from
cStringIO
import
StringIO
from
collections
import
defaultdict
from
.calc
import
UndefinedVariable
from
.capa_problem
import
LoncapaProblem
...
...
common/lib/capa/capa/customrender.py
View file @
181b1e97
...
...
@@ -10,8 +10,6 @@ from .registry import TagRegistry
import
logging
import
re
import
shlex
# for splitting quoted strings
import
json
from
lxml
import
etree
import
xml.sax.saxutils
as
saxutils
...
...
common/lib/capa/capa/responsetypes.py
View file @
181b1e97
...
...
@@ -11,7 +11,6 @@ Used by capa_problem.py
# standard library imports
import
abc
import
cgi
import
hashlib
import
inspect
import
json
import
logging
...
...
common/lib/capa/capa/tests/test_html_render.py
View file @
181b1e97
...
...
@@ -2,7 +2,6 @@ import unittest
from
lxml
import
etree
import
os
import
textwrap
import
json
import
mock
...
...
common/lib/capa/capa/util.py
View file @
181b1e97
from
calc
import
evaluator
,
UndefinedVariable
from
calc
import
evaluator
from
cmath
import
isinf
#-----------------------------------------------------------------------------
...
...
common/lib/chem/chem/chemcalc.py
View file @
181b1e97
from
__future__
import
division
import
copy
from
fractions
import
Fraction
import
logging
import
math
import
operator
import
re
import
numpy
import
numbers
import
scipy.constants
from
pyparsing
import
(
Literal
,
Keyword
,
Word
,
nums
,
StringEnd
,
Optional
,
Forward
,
OneOrMore
,
ParseException
)
from
pyparsing
import
(
Literal
,
StringEnd
,
OneOrMore
,
ParseException
)
import
nltk
from
nltk.tree
import
Tree
...
...
common/lib/symmath/symmath/formula.py
View file @
181b1e97
...
...
@@ -10,7 +10,6 @@
# Provides sympy representation.
import
os
import
sys
import
string
import
re
import
logging
...
...
@@ -25,8 +24,7 @@ from sympy.physics.quantum.state import *
# from sympy.core.operations import LatticeOp
# import sympy.physics.quantum.qubit
import
urllib
from
xml.sax.saxutils
import
escape
,
unescape
from
xml.sax.saxutils
import
unescape
import
sympy
import
unicodedata
from
lxml
import
etree
...
...
common/lib/symmath/symmath/symmath_check.py
View file @
181b1e97
...
...
@@ -8,10 +8,6 @@
#
# Takes in math expressions given as Presentation MathML (from ASCIIMathML), converts to Content MathML using SnuggleTeX
import
os
import
sys
import
string
import
re
import
traceback
from
.formula
import
*
import
logging
...
...
common/lib/xmodule/xmodule/modulestore/tests/factories.py
View file @
181b1e97
from
factory
import
Factory
,
lazy_attribute_sequence
,
lazy_attribute
from
time
import
gmtime
from
uuid
import
uuid4
from
xmodule.modulestore
import
Location
from
xmodule.modulestore.django
import
modulestore
...
...
common/lib/xmodule/xmodule/modulestore/tests/test_modulestore.py
View file @
181b1e97
from
nose.tools
import
assert_equals
,
assert_raises
,
assert_not_equals
,
with_setup
from
nose.tools
import
assert_equals
,
assert_raises
from
xmodule.modulestore.exceptions
import
ItemNotFoundError
,
NoPathToItem
from
xmodule.modulestore.exceptions
import
ItemNotFoundError
from
xmodule.modulestore.search
import
path_to_location
...
...
common/lib/xmodule/xmodule/modulestore/tests/test_mongo.py
View file @
181b1e97
import
pymongo
from
mock
import
Mock
from
nose.tools
import
assert_equals
,
assert_raises
,
assert_not_equals
,
assert_false
from
pprint
import
pprint
...
...
common/lib/xmodule/xmodule/open_ended_grading_classes/combined_open_ended_modulev1.py
View file @
181b1e97
import
json
import
logging
from
lxml
import
etree
from
lxml.html
import
rewrite_links
from
xmodule.timeinfo
import
TimeInfo
from
xmodule.capa_module
import
ComplexEncoder
from
xmodule.editing_module
import
EditingDescriptor
from
xmodule.progress
import
Progress
from
xmodule.stringify
import
stringify_children
from
xmodule.xml_module
import
XmlDescriptor
import
self_assessment_module
import
open_ended_module
from
.combined_open_ended_rubric
import
CombinedOpenEndedRubric
,
GRADER_TYPE_IMAGE_DICT
,
HUMAN_GRADER_TYPE
,
LEGEND_LIST
...
...
common/lib/xmodule/xmodule/open_ended_grading_classes/grading_service_module.py
View file @
181b1e97
...
...
@@ -3,7 +3,6 @@ import json
import
logging
import
requests
from
requests.exceptions
import
RequestException
,
ConnectionError
,
HTTPError
import
sys
from
.combined_open_ended_rubric
import
CombinedOpenEndedRubric
from
lxml
import
etree
...
...
common/lib/xmodule/xmodule/open_ended_grading_classes/open_ended_image_submission.py
View file @
181b1e97
...
...
@@ -14,9 +14,7 @@ from urlparse import urlparse
import
requests
from
boto.s3.connection
import
S3Connection
from
boto.s3.key
import
Key
import
pickle
import
logging
import
re
log
=
logging
.
getLogger
(
__name__
)
...
...
common/lib/xmodule/xmodule/open_ended_grading_classes/open_ended_module.py
View file @
181b1e97
...
...
@@ -11,10 +11,8 @@ from lxml import etree
import
capa.xqueue_interface
as
xqueue_interface
from
xmodule.capa_module
import
ComplexEncoder
from
xmodule.editing_module
import
EditingDescriptor
from
xmodule.progress
import
Progress
from
xmodule.stringify
import
stringify_children
from
xmodule.xml_module
import
XmlDescriptor
from
capa.util
import
*
import
openendedchild
...
...
common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py
View file @
181b1e97
...
...
@@ -3,14 +3,8 @@ import logging
from
lxml.html.clean
import
Cleaner
,
autolink_html
import
re
from
xmodule.capa_module
import
ComplexEncoder
import
open_ended_image_submission
from
xmodule.editing_module
import
EditingDescriptor
from
xmodule.html_checker
import
check_html
from
xmodule.progress
import
Progress
from
xmodule.stringify
import
stringify_children
from
xmodule.xml_module
import
XmlDescriptor
from
xmodule.modulestore
import
Location
from
capa.util
import
*
from
.peer_grading_service
import
PeerGradingService
,
MockPeerGradingService
import
controller_query_service
...
...
common/lib/xmodule/xmodule/progress.py
View file @
181b1e97
...
...
@@ -13,7 +13,6 @@ For most subclassing needs, you should only need to reimplement
frac() and __str__().
'''
from
collections
import
namedtuple
import
numbers
...
...
common/lib/xmodule/xmodule/schematic_module.py
View file @
181b1e97
import
json
from
.x_module
import
XModule
,
XModuleDescriptor
...
...
common/lib/xmodule/xmodule/template_module.py
View file @
181b1e97
...
...
@@ -3,7 +3,6 @@ from xmodule.raw_module import RawDescriptor
from
lxml
import
etree
from
mako.template
import
Template
from
xmodule.modulestore.django
import
modulestore
import
logging
class
CustomTagModule
(
XModule
):
...
...
common/lib/xmodule/xmodule/tests/test_html_module.py
View file @
181b1e97
...
...
@@ -3,7 +3,6 @@ import unittest
from
mock
import
Mock
from
xmodule.html_module
import
HtmlModule
from
xmodule.modulestore
import
Location
from
.
import
get_test_system
...
...
common/lib/xmodule/xmodule/tests/test_peer_grading.py
View file @
181b1e97
...
...
@@ -2,10 +2,6 @@ import unittest
from
xmodule.modulestore
import
Location
from
.
import
get_test_system
from
test_util_open_ended
import
MockQueryDict
,
DummyModulestore
import
json
from
xmodule.peer_grading_module
import
PeerGradingModule
,
PeerGradingDescriptor
from
xmodule.open_ended_grading_classes.grading_service_module
import
GradingServiceError
import
logging
...
...
common/lib/xmodule/xmodule/tests/test_randomize_module.py
View file @
181b1e97
import
unittest
from
time
import
strptime
from
fs.memoryfs
import
MemoryFS
from
mock
import
Mock
,
patch
from
xmodule.modulestore.xml
import
ImportSystem
,
XMLModuleStore
from
.test_course_module
import
DummySystem
as
DummyImportSystem
ORG
=
'test_org'
COURSE
=
'test_course'
...
...
@@ -13,9 +8,6 @@ COURSE = 'test_course'
START
=
'2013-01-01T01:00:00'
from
.test_course_module
import
DummySystem
as
DummyImportSystem
class
RandomizeModuleTestCase
(
unittest
.
TestCase
):
"""Make sure the randomize module works"""
@staticmethod
...
...
common/lib/xmodule/xmodule/tests/test_stringify.py
View file @
181b1e97
from
nose.tools
import
assert_equals
,
assert_true
,
assert_false
from
nose.tools
import
assert_equals
from
lxml
import
etree
from
xmodule.stringify
import
stringify_children
...
...
common/lib/xmodule/xmodule/tests/test_util_open_ended.py
View file @
181b1e97
from
.
import
get_test_system
from
xmodule.modulestore
import
Location
from
xmodule.modulestore.xml
import
ImportSystem
,
XMLModuleStore
from
xmodule.modulestore.xml
import
XMLModuleStore
from
xmodule.tests.test_export
import
DATA_DIR
OPEN_ENDED_GRADING_INTERFACE
=
{
...
...
common/lib/xmodule/xmodule/timelimit_module.py
View file @
181b1e97
import
json
import
logging
from
lxml
import
etree
...
...
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