Create collections explicitly

This commit is contained in:
Markus Unterwaditzer 2015-03-08 15:21:36 +01:00
parent 264023c30d
commit 25f209c3ca

View file

@ -162,7 +162,12 @@ class StorageTests(object):
# Create collections, but use the "collection" attribute because
# Radicale requires file extensions in their names.
collection = 'test{}'.format(i)
s = self.storage_class(**get_storage_args(collection=collection))
s = self.storage_class(
**self.storage_class.create_collection(
**get_storage_args(collection=collection)
)
)
items[s.collection] = [s.upload(get_item())]
expected.add(s.collection)