mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-03 10:25:51 +00:00
19 lines
522 B
Python
19 lines
522 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:8001/"
|
|
args = {
|
|
"url": url,
|
|
"username": "radicale",
|
|
"password": "radicale",
|
|
}
|
|
|
|
if collection is not None:
|
|
args = slow_create_collection(self.storage_class, args, collection)
|
|
return args
|
|
|
|
return inner
|