Commit 4b225de3 by Don Mitchell

Merge pull request #1381 from edx/bug/clear_assets

Ensure contentstore has no assets before generating test set
parents 5e45861d fe438bec
......@@ -174,6 +174,8 @@ class TestAssetIndex(CourseTestCase):
course_filter = Location(
XASSET_LOCATION_TAG, category='asset', course=self.course.location.course, org=self.course.location.org
)
# purge existing entries (a bit brutal but hopefully tests are independent enuf to not trip on this)
cstore.fs_files.remove(course_filter.dict())
base_entry = {
'displayname': 'foo.jpg',
'chunkSize': 262144,
......
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