Re-enable baikal tests

This commit is contained in:
Markus Unterwaditzer 2015-01-04 13:43:53 +01:00
parent 0ada12ea00
commit a55d1f2d03
3 changed files with 15 additions and 1 deletions

View file

@ -10,7 +10,7 @@ env:
- BUILD=tests DAV_SERVER=radicale RADICALE_BACKEND=multifilesystem REQUIREMENTS=devel
- BUILD=tests DAV_SERVER=radicale RADICALE_BACKEND=database REQUIREMENTS=devel
- BUILD=tests DAV_SERVER=owncloud REQUIREMENTS=release
#- BUILD=tests DAV_SERVER=baikal REQUIREMENTS=release
- BUILD=tests DAV_SERVER=baikal REQUIREMENTS=release
- BUILD=style
install:

View file

@ -75,6 +75,10 @@ class StorageTests(object):
assert etag2 == etag
def test_upload_already_existing(self, s, get_item):
if getattr(self, 'dav_server', '') == 'baikal':
# https://github.com/untitaker/vdirsyncer/issues/160
pytest.xfail(reason='Baikal uses an old version of SabreDAV.')
item = get_item()
s.upload(item)
with pytest.raises(exceptions.PreconditionFailed):
@ -97,11 +101,19 @@ class StorageTests(object):
assert_item_equals(s.get(href)[0], new_item)
def test_update_nonexisting(self, s, get_item):
if getattr(self, 'dav_server', '') == 'baikal':
# https://github.com/untitaker/vdirsyncer/issues/160
pytest.xfail(reason='Baikal uses an old version of SabreDAV.')
item = get_item()
with pytest.raises(exceptions.PreconditionFailed):
s.update('huehue', item, '"123"')
def test_wrong_etag(self, s, get_item):
if getattr(self, 'dav_server', '') == 'baikal':
# https://github.com/untitaker/vdirsyncer/issues/160
pytest.xfail(reason='Baikal uses an old version of SabreDAV.')
item = get_item()
href, etag = s.upload(item)
with pytest.raises(exceptions.PreconditionFailed):

View file

@ -37,6 +37,8 @@ ServerMixin = _get_server_mixin(dav_server)
class DavStorageTests(ServerMixin, StorageTests):
dav_server = dav_server
def test_dav_broken_item(self, s):
item = Item(u'HAHA:YES')
try: