mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-26 09:05:50 +00:00
* Port http storage to rust (#729) * Port http storage to rust * implement rest of parameters as far as possible * stylefixes * rustup * fix invalid timestamp * fix header file * Fix compilation errors * basic impl of dav * dockerize xandikos * add xandikos build * Fix circleci build * Fix circleci config * fix nextcloud port * stylefix * implement upload, upload, delete in rust * fix exc handling * python stylefixes * move caldav.list to rust * fix exc again (fastmail) * stylefixes * add basic logging, fix fastmail * stylefixes * fix tests for etag=None (icloud) * overwrite busted cargo-install-update * install clippy from git * fix rustfmt * rustfmt * clear cache
25 lines
687 B
Python
25 lines
687 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
import os
|
|
|
|
from .. import StorageTests, get_server_mixin
|
|
|
|
|
|
dav_server = os.environ.get('DAV_SERVER', 'skip')
|
|
ServerMixin = get_server_mixin(dav_server)
|
|
|
|
|
|
class DAVStorageTests(ServerMixin, StorageTests):
|
|
dav_server = dav_server
|
|
|
|
def test_dav_empty_get_multi_performance(self, s, monkeypatch):
|
|
def breakdown(*a, **kw):
|
|
raise AssertionError('Expected not to be called.')
|
|
|
|
monkeypatch.setattr('requests.sessions.Session.request', breakdown)
|
|
|
|
try:
|
|
assert list(s.get_multi([])) == []
|
|
finally:
|
|
# Make sure monkeypatch doesn't interfere with DAV server teardown
|
|
monkeypatch.undo()
|