Fix to excess asset query
This commit is contained in:
committed by
Sarina Canelake
parent
ade82c2d05
commit
acc02b0e09
@@ -88,7 +88,7 @@ class TestSaveSubsToStore(ModuleStoreTestCase):
|
||||
"""Remove, if subtitles content exists."""
|
||||
try:
|
||||
content = contentstore().find(self.content_location)
|
||||
contentstore().delete(content.get_id())
|
||||
contentstore().delete(content.location)
|
||||
except NotFoundError:
|
||||
pass
|
||||
|
||||
@@ -171,7 +171,7 @@ class TestDownloadYoutubeSubs(ModuleStoreTestCase):
|
||||
content_location = StaticContent.compute_location(self.course.id, filename)
|
||||
try:
|
||||
content = contentstore().find(content_location)
|
||||
contentstore().delete(content.get_id())
|
||||
contentstore().delete(content.location)
|
||||
except NotFoundError:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user