mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
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.
15 lines
411 B
Python
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
|