mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Add one test for dav
This commit is contained in:
parent
5de541bab7
commit
7fed1d4b88
1 changed files with 11 additions and 0 deletions
|
|
@ -23,6 +23,8 @@ from werkzeug.test import Client
|
||||||
from werkzeug.wrappers import BaseResponse as WerkzeugResponse
|
from werkzeug.wrappers import BaseResponse as WerkzeugResponse
|
||||||
|
|
||||||
from .. import StorageTests
|
from .. import StorageTests
|
||||||
|
import vdirsyncer.exceptions as exceptions
|
||||||
|
from vdirsyncer.storage.base import Item
|
||||||
|
|
||||||
|
|
||||||
def do_the_radicale_dance(tmpdir):
|
def do_the_radicale_dance(tmpdir):
|
||||||
|
|
@ -96,3 +98,12 @@ class DavStorageTests(StorageTests):
|
||||||
if self.tmpdir is not None:
|
if self.tmpdir is not None:
|
||||||
shutil.rmtree(self.tmpdir)
|
shutil.rmtree(self.tmpdir)
|
||||||
self.tmpdir = None
|
self.tmpdir = None
|
||||||
|
|
||||||
|
def test_dav_broken_item(self):
|
||||||
|
item = Item(u'UID:1')
|
||||||
|
s = self._get_storage()
|
||||||
|
try:
|
||||||
|
s.upload(item)
|
||||||
|
except exceptions.Error:
|
||||||
|
pass
|
||||||
|
assert not list(s.list())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue