Fix to excess asset query

This commit is contained in:
Don Mitchell
2014-06-05 12:17:00 -04:00
committed by Sarina Canelake
parent ade82c2d05
commit acc02b0e09
5 changed files with 13 additions and 21 deletions

View File

@@ -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