mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Fix breakage in Fastmail tests
Some code that wasn't updated with the switch to asyncio.
This commit is contained in:
parent
152ebb05dd
commit
2eff8e08e1
1 changed files with 8 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ import pytest
|
||||||
|
|
||||||
class ServerMixin:
|
class ServerMixin:
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def get_storage_args(self, item_type, slow_create_collection):
|
def get_storage_args(self, item_type, slow_create_collection, aio_connector):
|
||||||
if item_type == "VTODO":
|
if item_type == "VTODO":
|
||||||
# Fastmail has non-standard support for TODOs
|
# Fastmail has non-standard support for TODOs
|
||||||
# See https://github.com/pimutils/vdirsyncer/issues/824
|
# See https://github.com/pimutils/vdirsyncer/issues/824
|
||||||
|
|
@ -15,6 +15,7 @@ class ServerMixin:
|
||||||
args = {
|
args = {
|
||||||
"username": os.environ["FASTMAIL_USERNAME"],
|
"username": os.environ["FASTMAIL_USERNAME"],
|
||||||
"password": os.environ["FASTMAIL_PASSWORD"],
|
"password": os.environ["FASTMAIL_PASSWORD"],
|
||||||
|
"connector": aio_connector,
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.storage_class.fileext == ".ics":
|
if self.storage_class.fileext == ".ics":
|
||||||
|
|
@ -25,7 +26,12 @@ class ServerMixin:
|
||||||
raise RuntimeError()
|
raise RuntimeError()
|
||||||
|
|
||||||
if collection is not None:
|
if collection is not None:
|
||||||
args = slow_create_collection(self.storage_class, args, collection)
|
args = await slow_create_collection(
|
||||||
|
self.storage_class,
|
||||||
|
args,
|
||||||
|
collection,
|
||||||
|
)
|
||||||
|
|
||||||
return args
|
return args
|
||||||
|
|
||||||
return inner
|
return inner
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue