fix: update static file path in tests (#28872)
fix similar test in openedx
This commit is contained in:
@@ -1589,7 +1589,6 @@ class TestHtmlModifiers(ModuleStoreTestCase):
|
||||
self.course.static_asset_path = ""
|
||||
|
||||
@override_settings(DEFAULT_COURSE_ABOUT_IMAGE_URL='test.png')
|
||||
@override_settings(STATIC_URL='static/')
|
||||
@ddt.data(ModuleStoreEnum.Type.mongo, ModuleStoreEnum.Type.split)
|
||||
def test_course_image_for_split_course(self, store):
|
||||
"""
|
||||
@@ -1600,7 +1599,7 @@ class TestHtmlModifiers(ModuleStoreTestCase):
|
||||
self.course.course_image = ''
|
||||
|
||||
url = course_image_url(self.course)
|
||||
assert 'static/test.png' == url
|
||||
assert '/static/test.png' == url
|
||||
|
||||
def test_get_course_info_section(self):
|
||||
self.course.static_asset_path = "toy_course_dir"
|
||||
|
||||
Reference in New Issue
Block a user