mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +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:
|
||||
@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":
|
||||
# Fastmail has non-standard support for TODOs
|
||||
# See https://github.com/pimutils/vdirsyncer/issues/824
|
||||
|
|
@ -15,6 +15,7 @@ class ServerMixin:
|
|||
args = {
|
||||
"username": os.environ["FASTMAIL_USERNAME"],
|
||||
"password": os.environ["FASTMAIL_PASSWORD"],
|
||||
"connector": aio_connector,
|
||||
}
|
||||
|
||||
if self.storage_class.fileext == ".ics":
|
||||
|
|
@ -25,7 +26,12 @@ class ServerMixin:
|
|||
raise RuntimeError()
|
||||
|
||||
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 inner
|
||||
|
|
|
|||
Loading…
Reference in a new issue