Replace a few skips with xfails

This commit is contained in:
Markus Unterwaditzer 2016-05-02 17:07:31 +02:00
parent fc3e823b6b
commit d16721cde8
2 changed files with 8 additions and 5 deletions

View file

@ -227,7 +227,7 @@ class StorageTests(object):
def test_specialchars(self, monkeypatch, requires_collections,
get_storage_args, get_item):
if getattr(self, 'dav_server', '') == 'radicale':
pytest.skip('Radicale is fundamentally broken.')
pytest.xfail('Radicale is fundamentally broken.')
monkeypatch.setattr('vdirsyncer.utils.generate_href', lambda x: x)

View file

@ -2,6 +2,8 @@
import os
import pytest
import requests
import requests.exceptions
@ -41,10 +43,11 @@ class DavStorageTests(ServerMixin, StorageTests):
monkeypatch.undo()
def test_dav_unicode_href(self, s, get_item, monkeypatch):
if self.dav_server != 'radicale':
# Radicale is unable to deal with unicode hrefs
monkeypatch.setattr(s, '_get_href',
lambda item: item.ident + s.fileext)
if self.dav_server == 'radicale':
pytest.xfail('Radicale is unable to deal with unicode hrefs')
monkeypatch.setattr(s, '_get_href',
lambda item: item.ident + s.fileext)
item = get_item(uid=u'lolätvdirsynceröü град сатану')
href, etag = s.upload(item)
item2, etag2 = s.get(href)