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
7aab4151
Commit
7aab4151
authored
Nov 30, 2014
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s/pylint: disable=W0201/pylint: disable=attribute-defined-outside-init/
parent
0c7b60b8
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
9 deletions
+9
-9
common/lib/capa/capa/capa_problem.py
+1
-1
common/lib/capa/capa/responsetypes.py
+2
-2
common/lib/xmodule/xmodule/modulestore/mongo/base.py
+1
-1
common/test/acceptance/tests/discussion/test_cohorts.py
+2
-2
common/test/acceptance/tests/discussion/test_discussion.py
+2
-2
lms/djangoapps/courseware/tests/test_module_render.py
+1
-1
No files found.
common/lib/capa/capa/capa_problem.py
View file @
7aab4151
...
@@ -439,7 +439,7 @@ class LoncapaProblem(object):
...
@@ -439,7 +439,7 @@ class LoncapaProblem(object):
# Note that the modifications has been done, avoiding problems if called twice.
# Note that the modifications has been done, avoiding problems if called twice.
if
hasattr
(
self
,
'has_targeted'
):
if
hasattr
(
self
,
'has_targeted'
):
return
return
self
.
has_targeted
=
True
# pylint: disable=
W0201
self
.
has_targeted
=
True
# pylint: disable=
attribute-defined-outside-init
for
mult_choice_response
in
tree
.
xpath
(
'//multiplechoiceresponse[@targeted-feedback]'
):
for
mult_choice_response
in
tree
.
xpath
(
'//multiplechoiceresponse[@targeted-feedback]'
):
show_explanation
=
mult_choice_response
.
get
(
'targeted-feedback'
)
==
'alwaysShowCorrectChoiceExplanation'
show_explanation
=
mult_choice_response
.
get
(
'targeted-feedback'
)
==
'alwaysShowCorrectChoiceExplanation'
...
...
common/lib/capa/capa/responsetypes.py
View file @
7aab4151
...
@@ -874,7 +874,7 @@ class MultipleChoiceResponse(LoncapaResponse):
...
@@ -874,7 +874,7 @@ class MultipleChoiceResponse(LoncapaResponse):
# Both to avoid double-processing, and to feed the logs.
# Both to avoid double-processing, and to feed the logs.
if
self
.
has_shuffle
():
if
self
.
has_shuffle
():
return
return
self
.
_has_shuffle
=
True
# pylint: disable=
W0201
self
.
_has_shuffle
=
True
# pylint: disable=
attribute-defined-outside-init
# Move elements from tree to list for shuffling, then put them back.
# Move elements from tree to list for shuffling, then put them back.
ordering
=
list
(
choicegroup
.
getchildren
())
ordering
=
list
(
choicegroup
.
getchildren
())
for
choice
in
ordering
:
for
choice
in
ordering
:
...
@@ -958,7 +958,7 @@ class MultipleChoiceResponse(LoncapaResponse):
...
@@ -958,7 +958,7 @@ class MultipleChoiceResponse(LoncapaResponse):
# Both to avoid double-processing, and to feed the logs.
# Both to avoid double-processing, and to feed the logs.
if
self
.
has_answerpool
():
if
self
.
has_answerpool
():
return
return
self
.
_has_answerpool
=
True
# pylint: disable=
W0201
self
.
_has_answerpool
=
True
# pylint: disable=
attribute-defined-outside-init
choices_list
=
list
(
choicegroup
.
getchildren
())
choices_list
=
list
(
choicegroup
.
getchildren
())
...
...
common/lib/xmodule/xmodule/modulestore/mongo/base.py
View file @
7aab4151
...
@@ -442,7 +442,7 @@ class MongoModuleStore(ModuleStoreDraftAndPublished, ModuleStoreWriteBase, Mongo
...
@@ -442,7 +442,7 @@ class MongoModuleStore(ModuleStoreDraftAndPublished, ModuleStoreWriteBase, Mongo
# TODO (cpennington): Enable non-filesystem filestores
# TODO (cpennington): Enable non-filesystem filestores
# pylint: disable=invalid-name
# pylint: disable=invalid-name
# pylint: disable=
W0201
# pylint: disable=
attribute-defined-outside-init
def
__init__
(
self
,
contentstore
,
doc_store_config
,
fs_root
,
render_template
,
def
__init__
(
self
,
contentstore
,
doc_store_config
,
fs_root
,
render_template
,
default_class
=
None
,
default_class
=
None
,
error_tracker
=
null_error_tracker
,
error_tracker
=
null_error_tracker
,
...
...
common/test/acceptance/tests/discussion/test_cohorts.py
View file @
7aab4151
...
@@ -70,7 +70,7 @@ class DiscussionTabSingleThreadTest(UniqueCourseTest):
...
@@ -70,7 +70,7 @@ class DiscussionTabSingleThreadTest(UniqueCourseTest):
AutoAuthPage
(
self
.
browser
,
course_id
=
self
.
course_id
)
.
visit
()
AutoAuthPage
(
self
.
browser
,
course_id
=
self
.
course_id
)
.
visit
()
def
setup_thread_page
(
self
,
thread_id
):
def
setup_thread_page
(
self
,
thread_id
):
self
.
thread_page
=
DiscussionTabSingleThreadPage
(
self
.
browser
,
self
.
course_id
,
thread_id
)
# pylint: disable=
W0201
self
.
thread_page
=
DiscussionTabSingleThreadPage
(
self
.
browser
,
self
.
course_id
,
thread_id
)
# pylint: disable=
attribute-defined-outside-init
self
.
thread_page
.
visit
()
self
.
thread_page
.
visit
()
# pylint: disable=unused-argument
# pylint: disable=unused-argument
...
@@ -129,7 +129,7 @@ class InlineDiscussionTest(UniqueCourseTest):
...
@@ -129,7 +129,7 @@ class InlineDiscussionTest(UniqueCourseTest):
discussion_page
=
InlineDiscussionPage
(
self
.
browser
,
self
.
discussion_id
)
discussion_page
=
InlineDiscussionPage
(
self
.
browser
,
self
.
discussion_id
)
discussion_page
.
expand_discussion
()
discussion_page
.
expand_discussion
()
self
.
assertEqual
(
discussion_page
.
get_num_displayed_threads
(),
1
)
self
.
assertEqual
(
discussion_page
.
get_num_displayed_threads
(),
1
)
self
.
thread_page
=
InlineDiscussionThreadPage
(
self
.
browser
,
thread_id
)
# pylint: disable=
W0201
self
.
thread_page
=
InlineDiscussionThreadPage
(
self
.
browser
,
thread_id
)
# pylint: disable=
attribute-defined-outside-init
self
.
thread_page
.
expand
()
self
.
thread_page
.
expand
()
def
refresh_thread_page
(
self
,
thread_id
):
def
refresh_thread_page
(
self
,
thread_id
):
...
...
common/test/acceptance/tests/discussion/test_discussion.py
View file @
7aab4151
...
@@ -127,7 +127,7 @@ class DiscussionTabSingleThreadTest(UniqueCourseTest, DiscussionResponsePaginati
...
@@ -127,7 +127,7 @@ class DiscussionTabSingleThreadTest(UniqueCourseTest, DiscussionResponsePaginati
AutoAuthPage
(
self
.
browser
,
course_id
=
self
.
course_id
)
.
visit
()
AutoAuthPage
(
self
.
browser
,
course_id
=
self
.
course_id
)
.
visit
()
def
setup_thread_page
(
self
,
thread_id
):
def
setup_thread_page
(
self
,
thread_id
):
self
.
thread_page
=
DiscussionTabSingleThreadPage
(
self
.
browser
,
self
.
course_id
,
thread_id
)
# pylint: disable=
W0201
self
.
thread_page
=
DiscussionTabSingleThreadPage
(
self
.
browser
,
self
.
course_id
,
thread_id
)
# pylint: disable=
attribute-defined-outside-init
self
.
thread_page
.
visit
()
self
.
thread_page
.
visit
()
def
test_marked_answer_comments
(
self
):
def
test_marked_answer_comments
(
self
):
...
@@ -318,7 +318,7 @@ class InlineDiscussionTest(UniqueCourseTest, DiscussionResponsePaginationTestMix
...
@@ -318,7 +318,7 @@ class InlineDiscussionTest(UniqueCourseTest, DiscussionResponsePaginationTestMix
def
setup_thread_page
(
self
,
thread_id
):
def
setup_thread_page
(
self
,
thread_id
):
self
.
discussion_page
.
expand_discussion
()
self
.
discussion_page
.
expand_discussion
()
self
.
assertEqual
(
self
.
discussion_page
.
get_num_displayed_threads
(),
1
)
self
.
assertEqual
(
self
.
discussion_page
.
get_num_displayed_threads
(),
1
)
self
.
thread_page
=
InlineDiscussionThreadPage
(
self
.
browser
,
thread_id
)
# pylint: disable=
W0201
self
.
thread_page
=
InlineDiscussionThreadPage
(
self
.
browser
,
thread_id
)
# pylint: disable=
attribute-defined-outside-init
self
.
thread_page
.
expand
()
self
.
thread_page
.
expand
()
def
test_initial_render
(
self
):
def
test_initial_render
(
self
):
...
...
lms/djangoapps/courseware/tests/test_module_render.py
View file @
7aab4151
...
@@ -608,7 +608,7 @@ class ViewInStudioTest(ModuleStoreTestCase):
...
@@ -608,7 +608,7 @@ class ViewInStudioTest(ModuleStoreTestCase):
self
.
module
=
self
.
_get_module
(
course
.
id
,
descriptor
,
descriptor
.
location
)
self
.
module
=
self
.
_get_module
(
course
.
id
,
descriptor
,
descriptor
.
location
)
# pylint: disable=
W0201
# pylint: disable=
attribute-defined-outside-init
self
.
child_module
=
self
.
_get_module
(
course
.
id
,
child_descriptor
,
child_descriptor
.
location
)
self
.
child_module
=
self
.
_get_module
(
course
.
id
,
child_descriptor
,
child_descriptor
.
location
)
def
setup_xml_course
(
self
):
def
setup_xml_course
(
self
):
...
...
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