mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Replace a few skips with xfails
This commit is contained in:
parent
fc3e823b6b
commit
d16721cde8
2 changed files with 8 additions and 5 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue