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
c5a7911b
Commit
c5a7911b
authored
Mar 20, 2014
by
Jay Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix pylint disable pragmas that were pep8 violations
parent
021e6f5b
Hide whitespace changes
Inline
Side-by-side
Showing
55 changed files
with
105 additions
and
105 deletions
+105
-105
cms/djangoapps/contentstore/features/advanced_settings.py
+2
-2
cms/djangoapps/contentstore/features/checklists.py
+2
-2
cms/djangoapps/contentstore/features/component.py
+3
-3
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
+1
-1
cms/djangoapps/contentstore/features/course-export.py
+1
-1
cms/djangoapps/contentstore/features/course-settings.py
+2
-2
cms/djangoapps/contentstore/features/course-team.py
+2
-2
cms/djangoapps/contentstore/features/course-updates.py
+2
-2
cms/djangoapps/contentstore/features/courses.py
+2
-2
cms/djangoapps/contentstore/features/discussion-editor.py
+1
-1
cms/djangoapps/contentstore/features/grading.py
+2
-2
cms/djangoapps/contentstore/features/html-editor.py
+1
-1
cms/djangoapps/contentstore/features/problem-editor.py
+1
-1
cms/djangoapps/contentstore/features/signup.py
+2
-2
cms/djangoapps/contentstore/features/static-pages.py
+2
-2
cms/djangoapps/contentstore/features/subsection.py
+2
-2
cms/djangoapps/contentstore/features/textbooks.py
+2
-2
cms/djangoapps/contentstore/features/upload.py
+2
-2
cms/djangoapps/contentstore/features/video.py
+1
-1
cms/djangoapps/contentstore/tests/test_contentstore.py
+1
-1
cms/djangoapps/contentstore/tests/test_import.py
+1
-1
cms/djangoapps/contentstore/utils.py
+1
-1
cms/djangoapps/contentstore/views/error.py
+1
-1
cms/djangoapps/contentstore/views/tests/test_assets.py
+3
-3
cms/envs/bok_choy.py
+3
-3
cms/envs/debug_upload.py
+1
-1
cms/urls.py
+1
-1
common/djangoapps/contentserver/tests/test.py
+7
-7
common/djangoapps/terrain/browser.py
+2
-2
common/djangoapps/terrain/steps.py
+5
-5
common/djangoapps/terrain/ui_helpers.py
+2
-2
common/lib/extract_tar.py
+1
-1
common/lib/xmodule/xmodule/tests/test_capa_module.py
+4
-4
common/lib/xmodule/xmodule/tests/test_video.py
+1
-1
common/lib/xmodule/xmodule/tests/test_xml_module.py
+1
-1
common/test/acceptance/tests/helpers.py
+1
-1
docs/en_us/developers/source/conf.py
+4
-4
lms/djangoapps/courseware/features/certificates.py
+3
-3
lms/djangoapps/courseware/features/courseware.py
+2
-2
lms/djangoapps/courseware/features/courseware_common.py
+2
-2
lms/djangoapps/courseware/features/events.py
+1
-1
lms/djangoapps/courseware/features/help.py
+2
-2
lms/djangoapps/courseware/features/homepage.py
+2
-2
lms/djangoapps/courseware/features/login.py
+2
-2
lms/djangoapps/courseware/features/lti.py
+1
-1
lms/djangoapps/courseware/features/navigation.py
+2
-2
lms/djangoapps/courseware/features/openended.py
+2
-2
lms/djangoapps/courseware/features/problems_setup.py
+2
-2
lms/djangoapps/courseware/features/signup.py
+2
-2
lms/djangoapps/courseware/features/video.py
+1
-1
lms/djangoapps/courseware/features/word_cloud.py
+1
-1
lms/djangoapps/django_comment_client/tests/test_utils.py
+2
-2
lms/djangoapps/instructor/features/bulk_email.py
+2
-2
lms/djangoapps/instructor/tests/test_tools.py
+2
-2
lms/envs/bok_choy.py
+1
-1
No files found.
cms/djangoapps/contentstore/features/advanced_settings.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
nose.tools
import
assert_false
,
assert_equal
,
assert_regexp_matches
# pylint: disable=E0611
from
nose.tools
import
assert_false
,
assert_equal
,
assert_regexp_matches
# pylint: disable=E0611
...
...
cms/djangoapps/contentstore/features/checklists.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
nose.tools
import
assert_true
,
assert_equal
# pylint: disable=E0611
from
nose.tools
import
assert_true
,
assert_equal
# pylint: disable=E0611
...
...
cms/djangoapps/contentstore/features/component.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
# Lettuce formats proposed definitions for unimplemented steps with the
# Lettuce formats proposed definitions for unimplemented steps with the
# argument name "step" instead of "_step" and pylint does not like that.
# argument name "step" instead of "_step" and pylint does not like that.
#pylint: disable=W0613
#
pylint: disable=W0613
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
nose.tools
import
assert_true
,
assert_in
# pylint: disable=E0611
from
nose.tools
import
assert_true
,
assert_in
# pylint: disable=E0611
...
...
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
View file @
c5a7911b
# disable missing docstring
# disable missing docstring
#pylint: disable=C0111
#
pylint: disable=C0111
from
lettuce
import
world
from
lettuce
import
world
from
nose.tools
import
assert_equal
,
assert_in
# pylint: disable=E0611
from
nose.tools
import
assert_equal
,
assert_in
# pylint: disable=E0611
...
...
cms/djangoapps/contentstore/features/course-export.py
View file @
c5a7911b
# disable missing docstring
# disable missing docstring
#pylint: disable=C0111
#
pylint: disable=C0111
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
component_settings_editor_helpers
import
enter_xml_in_advanced_problem
from
component_settings_editor_helpers
import
enter_xml_in_advanced_problem
...
...
cms/djangoapps/contentstore/features/course-settings.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
terrain.steps
import
reload_the_page
from
terrain.steps
import
reload_the_page
...
...
cms/djangoapps/contentstore/features/course-team.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
nose.tools
import
assert_in
# pylint: disable=E0611
from
nose.tools
import
assert_in
# pylint: disable=E0611
...
...
cms/djangoapps/contentstore/features/course-updates.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
selenium.webdriver.common.keys
import
Keys
from
selenium.webdriver.common.keys
import
Keys
...
...
cms/djangoapps/contentstore/features/courses.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
common
import
*
from
common
import
*
...
...
cms/djangoapps/contentstore/features/discussion-editor.py
View file @
c5a7911b
# disable missing docstring
# disable missing docstring
#pylint: disable=C0111
#
pylint: disable=C0111
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
...
...
cms/djangoapps/contentstore/features/grading.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
common
import
*
from
common
import
*
...
...
cms/djangoapps/contentstore/features/html-editor.py
View file @
c5a7911b
# disable missing docstring
# disable missing docstring
#pylint: disable=C0111
#
pylint: disable=C0111
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
nose.tools
import
assert_in
# pylint: disable=no-name-in-module
from
nose.tools
import
assert_in
# pylint: disable=no-name-in-module
...
...
cms/djangoapps/contentstore/features/problem-editor.py
View file @
c5a7911b
# disable missing docstring
# disable missing docstring
#pylint: disable=C0111
#
pylint: disable=C0111
import
json
import
json
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
...
...
cms/djangoapps/contentstore/features/signup.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
...
...
cms/djangoapps/contentstore/features/static-pages.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
nose.tools
import
assert_equal
# pylint: disable=E0611
from
nose.tools
import
assert_equal
# pylint: disable=E0611
...
...
cms/djangoapps/contentstore/features/subsection.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
common
import
*
from
common
import
*
...
...
cms/djangoapps/contentstore/features/textbooks.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
django.conf
import
settings
from
django.conf
import
settings
...
...
cms/djangoapps/contentstore/features/upload.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
lettuce.django
import
django_url
from
lettuce.django
import
django_url
...
...
cms/djangoapps/contentstore/features/video.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
xmodule.modulestore
import
Location
from
xmodule.modulestore
import
Location
...
...
cms/djangoapps/contentstore/tests/test_contentstore.py
View file @
c5a7911b
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
#pylint: disable=E1101
#
pylint: disable=E1101
import
json
import
json
import
mock
import
mock
...
...
cms/djangoapps/contentstore/tests/test_import.py
View file @
c5a7911b
#pylint: disable=E1101
#
pylint: disable=E1101
"""
"""
Tests for import_from_xml using the mongo modulestore.
Tests for import_from_xml using the mongo modulestore.
"""
"""
...
...
cms/djangoapps/contentstore/utils.py
View file @
c5a7911b
#pylint: disable=E1103, E1101
#
pylint: disable=E1103, E1101
import
copy
import
copy
import
logging
import
logging
...
...
cms/djangoapps/contentstore/views/error.py
View file @
c5a7911b
#pylint: disable=C0111,W0613
#
pylint: disable=C0111,W0613
from
django.http
import
(
HttpResponse
,
HttpResponseServerError
,
from
django.http
import
(
HttpResponse
,
HttpResponseServerError
,
HttpResponseNotFound
)
HttpResponseNotFound
)
...
...
cms/djangoapps/contentstore/views/tests/test_assets.py
View file @
c5a7911b
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
Unit tests for the asset upload endpoint.
Unit tests for the asset upload endpoint.
"""
"""
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
#pylint: disable=W0212
#
pylint: disable=W0212
from
datetime
import
datetime
from
datetime
import
datetime
from
io
import
BytesIO
from
io
import
BytesIO
...
...
cms/envs/bok_choy.py
View file @
c5a7911b
...
@@ -13,7 +13,7 @@ from path import path
...
@@ -13,7 +13,7 @@ from path import path
# This is a convenience for ensuring (a) that we can consistently find the files
# This is a convenience for ensuring (a) that we can consistently find the files
# and (b) that the files are the same in Jenkins as in local dev.
# and (b) that the files are the same in Jenkins as in local dev.
os
.
environ
[
'SERVICE_VARIANT'
]
=
'bok_choy'
os
.
environ
[
'SERVICE_VARIANT'
]
=
'bok_choy'
os
.
environ
[
'CONFIG_ROOT'
]
=
path
(
__file__
)
.
abspath
()
.
dirname
()
#pylint: disable=E1120
os
.
environ
[
'CONFIG_ROOT'
]
=
path
(
__file__
)
.
abspath
()
.
dirname
()
#
pylint: disable=E1120
from
.aws
import
*
# pylint: disable=W0401, W0614
from
.aws
import
*
# pylint: disable=W0401, W0614
...
@@ -23,13 +23,13 @@ from .aws import * # pylint: disable=W0401, W0614
...
@@ -23,13 +23,13 @@ from .aws import * # pylint: disable=W0401, W0614
INSTALLED_APPS
+=
(
'django_extensions'
,)
INSTALLED_APPS
+=
(
'django_extensions'
,)
# Redirect to the test_root folder within the repo
# Redirect to the test_root folder within the repo
TEST_ROOT
=
CONFIG_ROOT
.
dirname
()
.
dirname
()
/
"test_root"
#pylint: disable=E1120
TEST_ROOT
=
CONFIG_ROOT
.
dirname
()
.
dirname
()
/
"test_root"
#
pylint: disable=E1120
GITHUB_REPO_ROOT
=
(
TEST_ROOT
/
"data"
)
.
abspath
()
GITHUB_REPO_ROOT
=
(
TEST_ROOT
/
"data"
)
.
abspath
()
LOG_DIR
=
(
TEST_ROOT
/
"log"
)
.
abspath
()
LOG_DIR
=
(
TEST_ROOT
/
"log"
)
.
abspath
()
# Configure Mongo modulestore to use the test folder within the repo
# Configure Mongo modulestore to use the test folder within the repo
for
store
in
[
"default"
,
"direct"
]:
for
store
in
[
"default"
,
"direct"
]:
MODULESTORE
[
store
][
'OPTIONS'
][
'fs_root'
]
=
(
TEST_ROOT
/
"data"
)
.
abspath
()
#pylint: disable=E1120
MODULESTORE
[
store
][
'OPTIONS'
][
'fs_root'
]
=
(
TEST_ROOT
/
"data"
)
.
abspath
()
#
pylint: disable=E1120
# Enable django-pipeline and staticfiles
# Enable django-pipeline and staticfiles
STATIC_ROOT
=
(
TEST_ROOT
/
"staticfiles"
)
.
abspath
()
STATIC_ROOT
=
(
TEST_ROOT
/
"staticfiles"
)
.
abspath
()
...
...
cms/envs/debug_upload.py
View file @
c5a7911b
#pylint: disable=W0614, W0401
#
pylint: disable=W0614, W0401
from
.dev
import
*
from
.dev
import
*
FILE_UPLOAD_HANDLERS
=
(
FILE_UPLOAD_HANDLERS
=
(
...
...
cms/urls.py
View file @
c5a7911b
...
@@ -137,6 +137,6 @@ if settings.DEBUG:
...
@@ -137,6 +137,6 @@ if settings.DEBUG:
pass
pass
# Custom error pages
# Custom error pages
#pylint: disable=C0103
#
pylint: disable=C0103
handler404
=
'contentstore.views.render_404'
handler404
=
'contentstore.views.render_404'
handler500
=
'contentstore.views.render_500'
handler500
=
'contentstore.views.render_500'
common/djangoapps/contentserver/tests/test.py
View file @
c5a7911b
...
@@ -89,7 +89,7 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
...
@@ -89,7 +89,7 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
"""
"""
self
.
client
.
logout
()
self
.
client
.
logout
()
resp
=
self
.
client
.
get
(
self
.
url_unlocked
)
resp
=
self
.
client
.
get
(
self
.
url_unlocked
)
self
.
assertEqual
(
resp
.
status_code
,
200
)
#pylint: disable=E1103
self
.
assertEqual
(
resp
.
status_code
,
200
)
#
pylint: disable=E1103
def
test_locked_asset_not_logged_in
(
self
):
def
test_locked_asset_not_logged_in
(
self
):
"""
"""
...
@@ -98,7 +98,7 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
...
@@ -98,7 +98,7 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
"""
"""
self
.
client
.
logout
()
self
.
client
.
logout
()
resp
=
self
.
client
.
get
(
self
.
url_locked
)
resp
=
self
.
client
.
get
(
self
.
url_locked
)
self
.
assertEqual
(
resp
.
status_code
,
403
)
#pylint: disable=E1103
self
.
assertEqual
(
resp
.
status_code
,
403
)
#
pylint: disable=E1103
def
test_locked_asset_not_registered
(
self
):
def
test_locked_asset_not_registered
(
self
):
"""
"""
...
@@ -107,30 +107,30 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
...
@@ -107,30 +107,30 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
"""
"""
self
.
client
.
login
(
username
=
self
.
usr
,
password
=
self
.
pwd
)
self
.
client
.
login
(
username
=
self
.
usr
,
password
=
self
.
pwd
)
resp
=
self
.
client
.
get
(
self
.
url_locked
)
resp
=
self
.
client
.
get
(
self
.
url_locked
)
self
.
assertEqual
(
resp
.
status_code
,
403
)
#pylint: disable=E1103
self
.
assertEqual
(
resp
.
status_code
,
403
)
#
pylint: disable=E1103
def
test_locked_asset_registered
(
self
):
def
test_locked_asset_registered
(
self
):
"""
"""
Test that locked assets behave appropriately in case user is logged in
Test that locked assets behave appropriately in case user is logged in
and registered for the course.
and registered for the course.
"""
"""
#pylint: disable=E1101
#
pylint: disable=E1101
course_id
=
"/"
.
join
([
self
.
loc_locked
.
org
,
self
.
loc_locked
.
course
,
'2012_Fall'
])
course_id
=
"/"
.
join
([
self
.
loc_locked
.
org
,
self
.
loc_locked
.
course
,
'2012_Fall'
])
CourseEnrollment
.
enroll
(
self
.
user
,
course_id
)
CourseEnrollment
.
enroll
(
self
.
user
,
course_id
)
self
.
assertTrue
(
CourseEnrollment
.
is_enrolled
(
self
.
user
,
course_id
))
self
.
assertTrue
(
CourseEnrollment
.
is_enrolled
(
self
.
user
,
course_id
))
self
.
client
.
login
(
username
=
self
.
usr
,
password
=
self
.
pwd
)
self
.
client
.
login
(
username
=
self
.
usr
,
password
=
self
.
pwd
)
resp
=
self
.
client
.
get
(
self
.
url_locked
)
resp
=
self
.
client
.
get
(
self
.
url_locked
)
self
.
assertEqual
(
resp
.
status_code
,
200
)
#pylint: disable=E1103
self
.
assertEqual
(
resp
.
status_code
,
200
)
#
pylint: disable=E1103
def
test_locked_asset_staff
(
self
):
def
test_locked_asset_staff
(
self
):
"""
"""
Test that locked assets behave appropriately in case user is staff.
Test that locked assets behave appropriately in case user is staff.
"""
"""
#pylint: disable=E1101
#
pylint: disable=E1101
course_id
=
"/"
.
join
([
self
.
loc_locked
.
org
,
self
.
loc_locked
.
course
,
'2012_Fall'
])
course_id
=
"/"
.
join
([
self
.
loc_locked
.
org
,
self
.
loc_locked
.
course
,
'2012_Fall'
])
self
.
client
.
login
(
username
=
self
.
staff_usr
,
password
=
self
.
staff_pwd
)
self
.
client
.
login
(
username
=
self
.
staff_usr
,
password
=
self
.
staff_pwd
)
resp
=
self
.
client
.
get
(
self
.
url_locked
)
resp
=
self
.
client
.
get
(
self
.
url_locked
)
self
.
assertEqual
(
resp
.
status_code
,
200
)
#pylint: disable=E1103
self
.
assertEqual
(
resp
.
status_code
,
200
)
#
pylint: disable=E1103
common/djangoapps/terrain/browser.py
View file @
c5a7911b
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
Browser set up for acceptance tests.
Browser set up for acceptance tests.
"""
"""
#pylint: disable=E1101
#
pylint: disable=E1101
#pylint: disable=W0613
#
pylint: disable=W0613
from
lettuce
import
before
,
after
,
world
from
lettuce
import
before
,
after
,
world
from
splinter.browser
import
Browser
from
splinter.browser
import
Browser
...
...
common/djangoapps/terrain/steps.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
# Disable the "wildcard import" warning so we can bring in all methods from
# Disable the "wildcard import" warning so we can bring in all methods from
# course helpers and ui helpers
# course helpers and ui helpers
#pylint: disable=W0401
#
pylint: disable=W0401
# Disable the "Unused import %s from wildcard import" warning
# Disable the "Unused import %s from wildcard import" warning
#pylint: disable=W0614
#
pylint: disable=W0614
# Disable the "unused argument" warning because lettuce uses "step"
# Disable the "unused argument" warning because lettuce uses "step"
#pylint: disable=W0613
#
pylint: disable=W0613
# django_url is assigned late in the process of loading lettuce,
# django_url is assigned late in the process of loading lettuce,
# so we import this as a module, and then read django_url from
# so we import this as a module, and then read django_url from
...
...
common/djangoapps/terrain/ui_helpers.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
from
lettuce
import
world
...
...
common/lib/extract_tar.py
View file @
c5a7911b
...
@@ -9,7 +9,7 @@ from os.path import abspath, realpath, dirname, join as joinpath
...
@@ -9,7 +9,7 @@ from os.path import abspath, realpath, dirname, join as joinpath
from
django.core.exceptions
import
SuspiciousOperation
from
django.core.exceptions
import
SuspiciousOperation
import
logging
import
logging
log
=
logging
.
getLogger
(
__name__
)
#pylint: disable=C0103
log
=
logging
.
getLogger
(
__name__
)
#
pylint: disable=C0103
def
resolved
(
rpath
):
def
resolved
(
rpath
):
"""
"""
...
...
common/lib/xmodule/xmodule/tests/test_capa_module.py
View file @
c5a7911b
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
"""
"""
Tests of the Capa XModule
Tests of the Capa XModule
"""
"""
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=R0904
#
pylint: disable=R0904
#pylint: disable=C0103
#
pylint: disable=C0103
#pylint: disable=C0302
#
pylint: disable=C0302
import
datetime
import
datetime
import
json
import
json
...
...
common/lib/xmodule/xmodule/tests/test_video.py
View file @
c5a7911b
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
#pylint: disable=W0212
#
pylint: disable=W0212
"""Test for Video Xmodule functional logic.
"""Test for Video Xmodule functional logic.
These test data read from xml, not from mongo.
These test data read from xml, not from mongo.
...
...
common/lib/xmodule/xmodule/tests/test_xml_module.py
View file @
c5a7911b
# disable missing docstring
# disable missing docstring
#pylint: disable=C0111
#
pylint: disable=C0111
import
unittest
import
unittest
...
...
common/test/acceptance/tests/helpers.py
View file @
c5a7911b
...
@@ -10,7 +10,7 @@ def load_data_str(rel_path):
...
@@ -10,7 +10,7 @@ def load_data_str(rel_path):
Load a file from the "data" directory as a string.
Load a file from the "data" directory as a string.
`rel_path` is the path relative to the data directory.
`rel_path` is the path relative to the data directory.
"""
"""
full_path
=
path
(
__file__
)
.
abspath
()
.
dirname
()
/
"data"
/
rel_path
#pylint: disable=E1120
full_path
=
path
(
__file__
)
.
abspath
()
.
dirname
()
/
"data"
/
rel_path
#
pylint: disable=E1120
with
open
(
full_path
)
as
data_file
:
with
open
(
full_path
)
as
data_file
:
return
data_file
.
read
()
return
data_file
.
read
()
...
...
docs/en_us/developers/source/conf.py
View file @
c5a7911b
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
#pylint: disable=C0103
#
pylint: disable=C0103
#pylint: disable=W0622
#
pylint: disable=W0622
#pylint: disable=W0212
#
pylint: disable=W0212
#pylint: disable=W0613
#
pylint: disable=W0613
import
sys
,
os
import
sys
,
os
from
path
import
path
from
path
import
path
...
...
lms/djangoapps/courseware/features/certificates.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
lettuce.django
import
django_url
from
lettuce.django
import
django_url
...
@@ -186,7 +186,7 @@ def confirm_details_match(step):
...
@@ -186,7 +186,7 @@ def confirm_details_match(step):
@step
(
u'I am at the payment page'
)
@step
(
u'I am at the payment page'
)
def
at_the_payment_page
(
step
):
def
at_the_payment_page
(
step
):
world
.
wait_for_present
(
'input[name=transactionSignature]'
)
world
.
wait_for_present
(
'input[name=transactionSignature]'
)
@step
(
u'I submit valid payment information$'
)
@step
(
u'I submit valid payment information$'
)
...
...
lms/djangoapps/courseware/features/courseware.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
lettuce.django
import
django_url
from
lettuce.django
import
django_url
...
...
lms/djangoapps/courseware/features/courseware_common.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
...
...
lms/djangoapps/courseware/features/events.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
from
lettuce
import
step
from
lettuce
import
step
from
lettuce
import
world
from
lettuce
import
world
...
...
lms/djangoapps/courseware/features/help.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
...
...
lms/djangoapps/courseware/features/homepage.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
nose.tools
import
assert_in
,
assert_equals
# pylint: disable=E0611
from
nose.tools
import
assert_in
,
assert_equals
# pylint: disable=E0611
...
...
lms/djangoapps/courseware/features/login.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
step
,
world
from
lettuce
import
step
,
world
from
django.contrib.auth.models
import
User
from
django.contrib.auth.models
import
User
...
...
lms/djangoapps/courseware/features/lti.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
import
datetime
import
datetime
import
os
import
os
import
pytz
import
pytz
...
...
lms/djangoapps/courseware/features/navigation.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
common
import
course_id
,
course_location
from
common
import
course_id
,
course_location
...
...
lms/djangoapps/courseware/features/openended.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
lettuce.django
import
django_url
from
lettuce.django
import
django_url
...
...
lms/djangoapps/courseware/features/problems_setup.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
#EVERY PROBLEM TYPE MUST HAVE THE FOLLOWING:
#EVERY PROBLEM TYPE MUST HAVE THE FOLLOWING:
# -Section in Dictionary containing:
# -Section in Dictionary containing:
...
...
lms/djangoapps/courseware/features/signup.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
...
...
lms/djangoapps/courseware/features/video.py
View file @
c5a7911b
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
#pylint: disable=C0111
#
pylint: disable=C0111
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
import
os
import
os
...
...
lms/djangoapps/courseware/features/word_cloud.py
View file @
c5a7911b
#pylint: disable=C0111
#
pylint: disable=C0111
from
time
import
sleep
from
time
import
sleep
...
...
lms/djangoapps/django_comment_client/tests/test_utils.py
View file @
c5a7911b
...
@@ -111,7 +111,7 @@ class CoursewareContextTestCase(ModuleStoreTestCase):
...
@@ -111,7 +111,7 @@ class CoursewareContextTestCase(ModuleStoreTestCase):
]
]
utils
.
add_courseware_context
(
threads
,
self
.
course
)
utils
.
add_courseware_context
(
threads
,
self
.
course
)
def
assertThreadCorrect
(
thread
,
discussion
,
expected_title
):
#pylint: disable=C0103
def
assertThreadCorrect
(
thread
,
discussion
,
expected_title
):
#
pylint: disable=C0103
self
.
assertEqual
(
self
.
assertEqual
(
set
(
thread
.
keys
()),
set
(
thread
.
keys
()),
set
([
"commentable_id"
,
"courseware_url"
,
"courseware_title"
])
set
([
"commentable_id"
,
"courseware_url"
,
"courseware_title"
])
...
@@ -146,7 +146,7 @@ class CategoryMapTestCase(ModuleStoreTestCase):
...
@@ -146,7 +146,7 @@ class CategoryMapTestCase(ModuleStoreTestCase):
self
.
course
.
discussion_topics
=
{}
self
.
course
.
discussion_topics
=
{}
self
.
course
.
save
()
self
.
course
.
save
()
self
.
discussion_num
=
0
self
.
discussion_num
=
0
self
.
maxDiff
=
None
#pylint: disable=C0103
self
.
maxDiff
=
None
#
pylint: disable=C0103
def
create_discussion
(
self
,
discussion_category
,
discussion_target
,
**
kwargs
):
def
create_discussion
(
self
,
discussion_category
,
discussion_target
,
**
kwargs
):
self
.
discussion_num
+=
1
self
.
discussion_num
+=
1
...
...
lms/djangoapps/instructor/features/bulk_email.py
View file @
c5a7911b
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
Define steps for bulk email acceptance test.
Define steps for bulk email acceptance test.
"""
"""
#pylint: disable=C0111
#
pylint: disable=C0111
#pylint: disable=W0621
#
pylint: disable=W0621
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
lettuce.django
import
mail
from
lettuce.django
import
mail
...
...
lms/djangoapps/instructor/tests/test_tools.py
View file @
c5a7911b
...
@@ -38,7 +38,7 @@ class TestHandleDashboardError(unittest.TestCase):
...
@@ -38,7 +38,7 @@ class TestHandleDashboardError(unittest.TestCase):
Test handle_dashboard_error decorator.
Test handle_dashboard_error decorator.
"""
"""
def
test_error
(
self
):
def
test_error
(
self
):
#pylint: disable=W0613
#
pylint: disable=W0613
@tools.handle_dashboard_error
@tools.handle_dashboard_error
def
view
(
request
,
course_id
):
def
view
(
request
,
course_id
):
"""
"""
...
@@ -50,7 +50,7 @@ class TestHandleDashboardError(unittest.TestCase):
...
@@ -50,7 +50,7 @@ class TestHandleDashboardError(unittest.TestCase):
self
.
assertEqual
(
response
,
{
'error'
:
'Oh noes!'
})
self
.
assertEqual
(
response
,
{
'error'
:
'Oh noes!'
})
def
test_no_error
(
self
):
def
test_no_error
(
self
):
#pylint: disable=W0613
#
pylint: disable=W0613
@tools.handle_dashboard_error
@tools.handle_dashboard_error
def
view
(
request
,
course_id
):
def
view
(
request
,
course_id
):
"""
"""
...
...
lms/envs/bok_choy.py
View file @
c5a7911b
...
@@ -5,7 +5,7 @@ Settings for bok choy tests
...
@@ -5,7 +5,7 @@ Settings for bok choy tests
import
os
import
os
from
path
import
path
from
path
import
path
CONFIG_ROOT
=
path
(
__file__
)
.
abspath
()
.
dirname
()
#pylint: disable=E1120
CONFIG_ROOT
=
path
(
__file__
)
.
abspath
()
.
dirname
()
#
pylint: disable=E1120
TEST_ROOT
=
CONFIG_ROOT
.
dirname
()
.
dirname
()
/
"test_root"
TEST_ROOT
=
CONFIG_ROOT
.
dirname
()
.
dirname
()
/
"test_root"
########################## Prod-like settings ###################################
########################## Prod-like settings ###################################
...
...
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