vdirsyncer/tests/storage/servers/xandikos/__init__.py
Hugo Osvaldo Barrera 0f3b2e74c0 Test xandikos running it in docker
The main advantage here is that its dependencies are TOTALLY separate
from vdirsyncer's, keeping the runtime environment for vdirsyncer
cleaner.

It also makes testing locally not only possible, but fast and pleasant.
2020-06-09 09:49:03 +02:00

15 lines
411 B
Python

import pytest
class ServerMixin:
@pytest.fixture
def get_storage_args(self, request, tmpdir, slow_create_collection):
def inner(collection="test"):
url = "http://127.0.0.1:8000/"
args = {"url": url}
if collection is not None:
args = slow_create_collection(self.storage_class, args, collection)
return args
return inner