mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Create collections explicitly
This commit is contained in:
parent
264023c30d
commit
25f209c3ca
1 changed files with 6 additions and 1 deletions
|
|
@ -162,7 +162,12 @@ class StorageTests(object):
|
||||||
# Create collections, but use the "collection" attribute because
|
# Create collections, but use the "collection" attribute because
|
||||||
# Radicale requires file extensions in their names.
|
# Radicale requires file extensions in their names.
|
||||||
collection = 'test{}'.format(i)
|
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())]
|
items[s.collection] = [s.upload(get_item())]
|
||||||
expected.add(s.collection)
|
expected.add(s.collection)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue