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
13ef870b
Commit
13ef870b
authored
Aug 14, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pylint/pep8 cleanup.
cleanup.
parent
aed29cb0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
cms/djangoapps/contentstore/tests/test_utils.py
+1
-3
common/lib/xmodule/xmodule/modulestore/tests/test_split_modulestore.py
+1
-4
No files found.
cms/djangoapps/contentstore/tests/test_utils.py
View file @
13ef870b
...
...
@@ -5,8 +5,6 @@ import collections
import
copy
from
django.test
import
TestCase
from
django.test.utils
import
override_settings
from
xmodule.modulestore.tests.factories
import
CourseFactory
from
xmodule.modulestore.tests.django_utils
import
ModuleStoreTestCase
class
LMSLinksTestCase
(
TestCase
):
...
...
@@ -78,6 +76,7 @@ class LMSLinksTestCase(TestCase):
"//localhost:8000/courses/mitX/101/test/jump_to/i4x://mitX/101/course/test"
)
class
ExtraPanelTabTestCase
(
TestCase
):
""" Tests adding and removing extra course tabs. """
...
...
@@ -151,4 +150,3 @@ class ExtraPanelTabTestCase(TestCase):
changed
,
actual_tabs
=
utils
.
remove_extra_panel_tab
(
tab_type
,
course
)
self
.
assertFalse
(
changed
)
self
.
assertEqual
(
actual_tabs
,
expected_tabs
)
common/lib/xmodule/xmodule/modulestore/tests/test_split_modulestore.py
View file @
13ef870b
...
...
@@ -332,9 +332,6 @@ class SplitModuleItemTests(SplitModuleTest):
def
verify_greek_hero
(
block
):
self
.
assertEqual
(
block
.
location
.
course_id
,
"GreekHero"
)
# look at this one in detail
self
.
assertEqual
(
len
(
block
.
tabs
),
6
,
"wrong number of tabs"
)
self
.
assertEqual
(
block
.
display_name
,
"The Ancient Greek Hero"
)
self
.
assertEqual
(
block
.
advertised_start
,
"Fall 2013"
)
...
...
@@ -463,7 +460,7 @@ class SplitModuleItemTests(SplitModuleTest):
parents
=
modulestore
()
.
get_parent_locations
(
locator
)
self
.
assertEqual
(
len
(
parents
),
1
)
self
.
assertEqual
(
parents
[
0
]
.
usage_id
,
'head12345'
)
locator
.
usage_id
=
'nosuchblock'
locator
.
usage_id
=
'nosuchblock'
parents
=
modulestore
()
.
get_parent_locations
(
locator
)
self
.
assertEqual
(
len
(
parents
),
0
)
...
...
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