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
6e8d075d
Commit
6e8d075d
authored
Mar 16, 2015
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7355 from edx/ned/fix-capitalization
Simple capitalization fix
parents
d2786a64
a8da7946
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
cms/djangoapps/contentstore/views/tests/test_transcripts.py
+7
-7
No files found.
cms/djangoapps/contentstore/views/tests/test_transcripts.py
View file @
6e8d075d
...
@@ -26,7 +26,7 @@ TEST_DATA_CONTENTSTORE['DOC_STORE_CONFIG']['db'] = 'test_xcontent_%s' % uuid4().
...
@@ -26,7 +26,7 @@ TEST_DATA_CONTENTSTORE['DOC_STORE_CONFIG']['db'] = 'test_xcontent_%s' % uuid4().
@override_settings
(
CONTENTSTORE
=
TEST_DATA_CONTENTSTORE
)
@override_settings
(
CONTENTSTORE
=
TEST_DATA_CONTENTSTORE
)
class
Base
t
ranscripts
(
CourseTestCase
):
class
Base
T
ranscripts
(
CourseTestCase
):
"""Base test class for transcripts tests."""
"""Base test class for transcripts tests."""
def
clear_subs_content
(
self
):
def
clear_subs_content
(
self
):
...
@@ -42,7 +42,7 @@ class Basetranscripts(CourseTestCase):
...
@@ -42,7 +42,7 @@ class Basetranscripts(CourseTestCase):
def
setUp
(
self
):
def
setUp
(
self
):
"""Create initial data."""
"""Create initial data."""
super
(
Base
t
ranscripts
,
self
)
.
setUp
()
super
(
Base
T
ranscripts
,
self
)
.
setUp
()
# Add video module
# Add video module
data
=
{
data
=
{
...
@@ -81,12 +81,12 @@ class Basetranscripts(CourseTestCase):
...
@@ -81,12 +81,12 @@ class Basetranscripts(CourseTestCase):
}
}
class
TestUpload
transcripts
(
Baset
ranscripts
):
class
TestUpload
Transcripts
(
BaseT
ranscripts
):
"""Tests for '/transcripts/upload' url."""
"""Tests for '/transcripts/upload' url."""
def
setUp
(
self
):
def
setUp
(
self
):
"""Create initial data."""
"""Create initial data."""
super
(
TestUpload
t
ranscripts
,
self
)
.
setUp
()
super
(
TestUpload
T
ranscripts
,
self
)
.
setUp
()
self
.
good_srt_file
=
tempfile
.
NamedTemporaryFile
(
suffix
=
'.srt'
)
self
.
good_srt_file
=
tempfile
.
NamedTemporaryFile
(
suffix
=
'.srt'
)
self
.
good_srt_file
.
write
(
textwrap
.
dedent
(
"""
self
.
good_srt_file
.
write
(
textwrap
.
dedent
(
"""
...
@@ -338,7 +338,7 @@ class TestUploadtranscripts(Basetranscripts):
...
@@ -338,7 +338,7 @@ class TestUploadtranscripts(Basetranscripts):
self
.
assertIn
(
"Test ufeff characters"
,
subs_text
)
self
.
assertIn
(
"Test ufeff characters"
,
subs_text
)
def
tearDown
(
self
):
def
tearDown
(
self
):
super
(
TestUpload
t
ranscripts
,
self
)
.
tearDown
()
super
(
TestUpload
T
ranscripts
,
self
)
.
tearDown
()
self
.
good_srt_file
.
close
()
self
.
good_srt_file
.
close
()
self
.
bad_data_srt_file
.
close
()
self
.
bad_data_srt_file
.
close
()
...
@@ -346,7 +346,7 @@ class TestUploadtranscripts(Basetranscripts):
...
@@ -346,7 +346,7 @@ class TestUploadtranscripts(Basetranscripts):
self
.
ufeff_srt_file
.
close
()
self
.
ufeff_srt_file
.
close
()
class
TestDownload
transcripts
(
Baset
ranscripts
):
class
TestDownload
Transcripts
(
BaseT
ranscripts
):
"""Tests for '/transcripts/download' url."""
"""Tests for '/transcripts/download' url."""
def
save_subs_to_store
(
self
,
subs
,
subs_id
):
def
save_subs_to_store
(
self
,
subs
,
subs_id
):
...
@@ -522,7 +522,7 @@ class TestDownloadtranscripts(Basetranscripts):
...
@@ -522,7 +522,7 @@ class TestDownloadtranscripts(Basetranscripts):
self
.
assertEqual
(
resp
.
status_code
,
404
)
self
.
assertEqual
(
resp
.
status_code
,
404
)
class
TestCheck
transcripts
(
Baset
ranscripts
):
class
TestCheck
Transcripts
(
BaseT
ranscripts
):
"""Tests for '/transcripts/check' url."""
"""Tests for '/transcripts/check' url."""
def
save_subs_to_store
(
self
,
subs
,
subs_id
):
def
save_subs_to_store
(
self
,
subs
,
subs_id
):
...
...
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