Commit 9fc7c73b by Syed Hasan raza

Merge pull request #10854 from edx/shr/impr/TNL-3076-Tests-improvement

Course_key naming convention
parents dbb1887c 9ff080f6
...@@ -317,9 +317,9 @@ class VideoDescriptorImportTestCase(unittest.TestCase): ...@@ -317,9 +317,9 @@ class VideoDescriptorImportTestCase(unittest.TestCase):
}) })
@ddt.data( @ddt.data(
('course-v1:test_course+test_org+test_run', ('course-v1:test_org+test_course+test_run',
'/asset-v1:test_course+test_org+test_run+type@asset+block@test.png'), '/asset-v1:test_org+test_course+test_run+type@asset+block@test.png'),
('test_course/test_org/test_run', '/c4x/test_course/test_org/asset/test.png') ('test_org/test_course/test_run', '/c4x/test_org/test_course/asset/test.png')
) )
@ddt.unpack @ddt.unpack
def test_from_xml_when_handout_is_course_asset(self, course_id_string, expected_handout_link): def test_from_xml_when_handout_is_course_asset(self, course_id_string, expected_handout_link):
...@@ -338,7 +338,7 @@ class VideoDescriptorImportTestCase(unittest.TestCase): ...@@ -338,7 +338,7 @@ class VideoDescriptorImportTestCase(unittest.TestCase):
end_time="00:01:00"> end_time="00:01:00">
<source src="http://www.example.com/source.mp4"/> <source src="http://www.example.com/source.mp4"/>
<track src="http://www.example.com/track"/> <track src="http://www.example.com/track"/>
<handout src="/asset-v1:test_course_1+test_org_1+test_run_1+type@asset+block@test.png"/> <handout src="/asset-v1:test_org_1+test_course_1+test_run_1+type@asset+block@test.png"/>
<transcript language="uk" src="ukrainian_translation.srt" /> <transcript language="uk" src="ukrainian_translation.srt" />
<transcript language="de" src="german_translation.srt" /> <transcript language="de" src="german_translation.srt" />
</video> </video>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment