mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Fix remoteStorage tests
This commit is contained in:
parent
36ffac8801
commit
61dce503a3
1 changed files with 2 additions and 1 deletions
|
|
@ -169,12 +169,13 @@ class StorageTests(object):
|
||||||
assert self.storage_class.__name__ in repr(s)
|
assert self.storage_class.__name__ in repr(s)
|
||||||
assert s.instance_name is None
|
assert s.instance_name is None
|
||||||
|
|
||||||
def test_discover(self, requires_collections, get_storage_args):
|
def test_discover(self, requires_collections, get_storage_args, get_item):
|
||||||
collections = set()
|
collections = set()
|
||||||
for i in range(1, 5):
|
for i in range(1, 5):
|
||||||
collection = 'test{}'.format(i)
|
collection = 'test{}'.format(i)
|
||||||
s = self.storage_class(**get_storage_args(collection=collection))
|
s = self.storage_class(**get_storage_args(collection=collection))
|
||||||
assert not list(s.list())
|
assert not list(s.list())
|
||||||
|
s.upload(get_item())
|
||||||
collections.add(s.collection)
|
collections.add(s.collection)
|
||||||
|
|
||||||
actual = set(
|
actual = set(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue