Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
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
OpenEdx
problem-builder
Commits
22891c9f
Commit
22891c9f
authored
Mar 01, 2016
by
Tim Krones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Have pylint check for unused imports.
parent
05527093
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
7 additions
and
11 deletions
+7
-11
circle.yml
+1
-1
problem_builder/answer.py
+1
-1
problem_builder/south_migrations/0003_auto__add_share__add_unique_share_shared_by_shared_with_block_id.py
+0
-2
problem_builder/table.py
+1
-1
problem_builder/tests/integration/test_assessment.py
+1
-1
problem_builder/tests/integration/test_author_changes.py
+1
-1
problem_builder/tests/integration/test_dashboard.py
+0
-1
problem_builder/tests/unit/test_dashboard_visual.py
+2
-3
No files found.
circle.yml
View file @
22891c9f
...
@@ -15,7 +15,7 @@ test:
...
@@ -15,7 +15,7 @@ test:
override
:
override
:
-
"
if
[
$CIRCLE_NODE_INDEX
=
'0'
];
then
pep8
problem_builder
--max-line-length=120;
fi"
:
-
"
if
[
$CIRCLE_NODE_INDEX
=
'0'
];
then
pep8
problem_builder
--max-line-length=120;
fi"
:
parallel
:
true
parallel
:
true
-
"
if
[
$CIRCLE_NODE_INDEX
=
'1'
];
then
pylint
problem_builder
--disable=all
--enable=function-redefined,undefined-variable,unused-variable;
fi"
:
-
"
if
[
$CIRCLE_NODE_INDEX
=
'1'
];
then
pylint
problem_builder
--disable=all
--enable=function-redefined,undefined-variable,unused-
import,unused-
variable;
fi"
:
parallel
:
true
parallel
:
true
-
"
python
run_tests.py"
:
-
"
python
run_tests.py"
:
parallel
:
true
parallel
:
true
...
...
problem_builder/answer.py
View file @
22891c9f
...
@@ -26,7 +26,7 @@ from lazy import lazy
...
@@ -26,7 +26,7 @@ from lazy import lazy
from
.models
import
Answer
from
.models
import
Answer
from
xblock.core
import
XBlock
from
xblock.core
import
XBlock
from
xblock.fields
import
Scope
,
Float
,
Integer
,
String
from
xblock.fields
import
Scope
,
Integer
,
String
from
xblock.fragment
import
Fragment
from
xblock.fragment
import
Fragment
from
xblock.validation
import
ValidationMessage
from
xblock.validation
import
ValidationMessage
from
xblockutils.resources
import
ResourceLoader
from
xblockutils.resources
import
ResourceLoader
...
...
problem_builder/south_migrations/0003_auto__add_share__add_unique_share_shared_by_shared_with_block_id.py
View file @
22891c9f
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
from
south.utils
import
datetime_utils
as
datetime
from
south.db
import
db
from
south.db
import
db
from
south.v2
import
SchemaMigration
from
south.v2
import
SchemaMigration
from
django.db
import
models
class
Migration
(
SchemaMigration
):
class
Migration
(
SchemaMigration
):
...
...
problem_builder/table.py
View file @
22891c9f
...
@@ -26,7 +26,7 @@ from django.contrib.auth.models import User
...
@@ -26,7 +26,7 @@ from django.contrib.auth.models import User
from
xblock.core
import
XBlock
from
xblock.core
import
XBlock
from
xblock.exceptions
import
JsonHandlerError
from
xblock.exceptions
import
JsonHandlerError
from
xblock.fields
import
Scope
,
String
,
Boolean
,
Dict
from
xblock.fields
import
Scope
,
String
,
Boolean
from
xblock.fragment
import
Fragment
from
xblock.fragment
import
Fragment
from
xblockutils.resources
import
ResourceLoader
from
xblockutils.resources
import
ResourceLoader
...
...
problem_builder/tests/integration/test_assessment.py
View file @
22891c9f
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
# along with this program in a file in the toplevel directory called
# along with this program in a file in the toplevel directory called
# "AGPLv3". If not, see <http://www.gnu.org/licenses/>.
# "AGPLv3". If not, see <http://www.gnu.org/licenses/>.
#
#
from
ddt
import
ddt
,
unpack
,
data
from
ddt
import
ddt
,
data
from
.base_test
import
CORRECT
,
INCORRECT
,
PARTIAL
,
MentoringAssessmentBaseTest
,
GetChoices
from
.base_test
import
CORRECT
,
INCORRECT
,
PARTIAL
,
MentoringAssessmentBaseTest
,
GetChoices
...
...
problem_builder/tests/integration/test_author_changes.py
View file @
22891c9f
...
@@ -3,8 +3,8 @@ If an author makes changes to the block after students have started using it, wi
...
@@ -3,8 +3,8 @@ If an author makes changes to the block after students have started using it, wi
happen?
happen?
"""
"""
import
time
import
time
from
.base_test
import
ProblemBuilderBaseTest
,
MentoringAssessmentBaseTest
from
.base_test
import
ProblemBuilderBaseTest
,
MentoringAssessmentBaseTest
import
re
class
AuthorChangesTest
(
ProblemBuilderBaseTest
):
class
AuthorChangesTest
(
ProblemBuilderBaseTest
):
...
...
problem_builder/tests/integration/test_dashboard.py
View file @
22891c9f
...
@@ -21,7 +21,6 @@ from textwrap import dedent
...
@@ -21,7 +21,6 @@ from textwrap import dedent
from
mock
import
Mock
,
patch
from
mock
import
Mock
,
patch
from
.base_test
import
ProblemBuilderBaseTest
from
.base_test
import
ProblemBuilderBaseTest
from
selenium.common.exceptions
import
NoSuchElementException
from
selenium.common.exceptions
import
NoSuchElementException
from
xblockutils.resources
import
ResourceLoader
class
MockSubmissionsAPI
(
object
):
class
MockSubmissionsAPI
(
object
):
...
...
problem_builder/tests/unit/test_dashboard_visual.py
View file @
22891c9f
"""
"""
Unit tests for DashboardVisualData
Unit tests for DashboardVisualData
"""
"""
from
problem_builder.dashboard_visual
import
DashboardVisualData
from
mock
import
MagicMock
,
Mock
import
unittest
import
unittest
from
xblock.field_data
import
DictFieldData
from
problem_builder.dashboard_visual
import
DashboardVisualData
class
TestDashboardVisualData
(
unittest
.
TestCase
):
class
TestDashboardVisualData
(
unittest
.
TestCase
):
...
...
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