mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Fix logic
This commit is contained in:
parent
ea259f2785
commit
77a8cf8ff7
1 changed files with 2 additions and 1 deletions
|
|
@ -130,7 +130,8 @@ class TestCaldavStorage(DavStorageTests):
|
||||||
monkeypatch.setattr(s, '_list', _list)
|
monkeypatch.setattr(s, '_list', _list)
|
||||||
|
|
||||||
rv = list(s.list())
|
rv = list(s.list())
|
||||||
if dav_server != 'radicale' or item.parsed.name in s.item_types:
|
if (dav_server != 'radicale' and not s.item_types) \
|
||||||
|
or item.parsed.name in s.item_types:
|
||||||
assert rv == [(href, etag)]
|
assert rv == [(href, etag)]
|
||||||
assert len(calls) == (len(item_types) or 1)
|
assert len(calls) == (len(item_types) or 1)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue