mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-01 10:05:50 +00:00
Tidy up some collection initializations
This commit is contained in:
parent
ee124f5c82
commit
a9fa61040f
2 changed files with 3 additions and 3 deletions
|
|
@ -210,7 +210,7 @@ class StorageTests:
|
|||
s = self.storage_class(**self.storage_class.create_collection(**args))
|
||||
|
||||
href = s.upload(get_item())[0]
|
||||
assert href in {href for href, etag in s.list()}
|
||||
assert href in (href for href, etag in s.list())
|
||||
|
||||
def test_discover_collection_arg(self, requires_collections, get_storage_args):
|
||||
args = get_storage_args(collection="test2")
|
||||
|
|
@ -239,7 +239,7 @@ class StorageTests:
|
|||
uid = str(uuid.uuid4())
|
||||
s.upload(get_item(uid=uid.upper()))
|
||||
s.upload(get_item(uid=uid.lower()))
|
||||
items = list(href for href, etag in s.list())
|
||||
items = [href for href, etag in s.list()]
|
||||
assert len(items) == 2
|
||||
assert len(set(items)) == 2
|
||||
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ def request(
|
|||
if verify_fingerprint is not None:
|
||||
_install_fingerprint_adapter(session, verify_fingerprint)
|
||||
|
||||
session.hooks = dict(response=_fix_redirects)
|
||||
session.hooks = {"response": _fix_redirects}
|
||||
|
||||
func = session.request
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue