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
a8da7946
Commit
a8da7946
authored
10 years ago
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simple capitalization fix
parent
63341287
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 @
a8da7946
...
...
@@ -26,7 +26,7 @@ TEST_DATA_CONTENTSTORE['DOC_STORE_CONFIG']['db'] = 'test_xcontent_%s' % uuid4().
@override_settings
(
CONTENTSTORE
=
TEST_DATA_CONTENTSTORE
)
class
Base
t
ranscripts
(
CourseTestCase
):
class
Base
T
ranscripts
(
CourseTestCase
):
"""Base test class for transcripts tests."""
def
clear_subs_content
(
self
):
...
...
@@ -42,7 +42,7 @@ class Basetranscripts(CourseTestCase):
def
setUp
(
self
):
"""Create initial data."""
super
(
Base
t
ranscripts
,
self
)
.
setUp
()
super
(
Base
T
ranscripts
,
self
)
.
setUp
()
# Add video module
data
=
{
...
...
@@ -81,12 +81,12 @@ class Basetranscripts(CourseTestCase):
}
class
TestUpload
transcripts
(
Baset
ranscripts
):
class
TestUpload
Transcripts
(
BaseT
ranscripts
):
"""Tests for '/transcripts/upload' url."""
def
setUp
(
self
):
"""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
.
write
(
textwrap
.
dedent
(
"""
...
...
@@ -338,7 +338,7 @@ class TestUploadtranscripts(Basetranscripts):
self
.
assertIn
(
"Test ufeff characters"
,
subs_text
)
def
tearDown
(
self
):
super
(
TestUpload
t
ranscripts
,
self
)
.
tearDown
()
super
(
TestUpload
T
ranscripts
,
self
)
.
tearDown
()
self
.
good_srt_file
.
close
()
self
.
bad_data_srt_file
.
close
()
...
...
@@ -346,7 +346,7 @@ class TestUploadtranscripts(Basetranscripts):
self
.
ufeff_srt_file
.
close
()
class
TestDownload
transcripts
(
Baset
ranscripts
):
class
TestDownload
Transcripts
(
BaseT
ranscripts
):
"""Tests for '/transcripts/download' url."""
def
save_subs_to_store
(
self
,
subs
,
subs_id
):
...
...
@@ -522,7 +522,7 @@ class TestDownloadtranscripts(Basetranscripts):
self
.
assertEqual
(
resp
.
status_code
,
404
)
class
TestCheck
transcripts
(
Baset
ranscripts
):
class
TestCheck
Transcripts
(
BaseT
ranscripts
):
"""Tests for '/transcripts/check' url."""
def
save_subs_to_store
(
self
,
subs
,
subs_id
):
...
...
This diff is collapsed.
Click to expand it.
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