mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +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):
|
||||
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):
|
||||
storage_class = CaldavStorage
|
||||
|
|
@ -202,16 +212,6 @@ class TestCaldavStorage(DavStorageTests):
|
|||
self.storage_class(**args)
|
||||
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):
|
||||
storage_class = CarddavStorage
|
||||
|
|
|
|||
Loading…
Reference in a new issue