mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Also test carddav about this
This commit is contained in:
parent
7852dfc1a2
commit
91de80cef0
1 changed files with 10 additions and 10 deletions
|
|
@ -61,6 +61,16 @@ class DavStorageTests(ServerMixin, StorageTests):
|
||||||
def test_update_nonexisting(self):
|
def test_update_nonexisting(self):
|
||||||
super(DavStorageTests, self).test_update_nonexisting()
|
super(DavStorageTests, self).test_update_nonexisting()
|
||||||
|
|
||||||
|
def test_dav_empty_get_multi_performance(self, monkeypatch):
|
||||||
|
s = self._get_storage()
|
||||||
|
|
||||||
|
def breakdown(*a, **kw):
|
||||||
|
raise AssertionError('Expected not to be called.')
|
||||||
|
|
||||||
|
monkeypatch.setattr('requests.sessions.Session.request', breakdown)
|
||||||
|
|
||||||
|
assert list(s.get_multi([])) == []
|
||||||
|
|
||||||
|
|
||||||
class TestCaldavStorage(DavStorageTests):
|
class TestCaldavStorage(DavStorageTests):
|
||||||
storage_class = CaldavStorage
|
storage_class = CaldavStorage
|
||||||
|
|
@ -202,16 +212,6 @@ class TestCaldavStorage(DavStorageTests):
|
||||||
self.storage_class(**args)
|
self.storage_class(**args)
|
||||||
assert len(calls) == 1
|
assert len(calls) == 1
|
||||||
|
|
||||||
def test_empty_get_multi_performance(self, monkeypatch):
|
|
||||||
s = self._get_storage()
|
|
||||||
|
|
||||||
def breakdown(*a, **kw):
|
|
||||||
raise AssertionError('Expected not to be called.')
|
|
||||||
|
|
||||||
monkeypatch.setattr('requests.sessions.Session.request', breakdown)
|
|
||||||
|
|
||||||
assert list(s.get_multi([])) == []
|
|
||||||
|
|
||||||
|
|
||||||
class TestCarddavStorage(DavStorageTests):
|
class TestCarddavStorage(DavStorageTests):
|
||||||
storage_class = CarddavStorage
|
storage_class = CarddavStorage
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue