Skip to content

Commit 2eff8e0

Browse files
author
Hugo Osvaldo Barrera
committed
Fix breakage in Fastmail tests
Some code that wasn't updated with the switch to asyncio.
1 parent 152ebb0 commit 2eff8e0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/storage/servers/fastmail/__init__.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
class ServerMixin:
77
@pytest.fixture
8-
def get_storage_args(self, item_type, slow_create_collection):
8+
def get_storage_args(self, item_type, slow_create_collection, aio_connector):
99
if item_type == "VTODO":
1010
# Fastmail has non-standard support for TODOs
1111
# See https://github.com/pimutils/vdirsyncer/issues/824
@@ -15,6 +15,7 @@ async def inner(collection="test"):
1515
args = {
1616
"username": os.environ["FASTMAIL_USERNAME"],
1717
"password": os.environ["FASTMAIL_PASSWORD"],
18+
"connector": aio_connector,
1819
}
1920

2021
if self.storage_class.fileext == ".ics":
@@ -25,7 +26,12 @@ async def inner(collection="test"):
2526
raise RuntimeError()
2627

2728
if collection is not None:
28-
args = slow_create_collection(self.storage_class, args, collection)
29+
args = await slow_create_collection(
30+
self.storage_class,
31+
args,
32+
collection,
33+
)
34+
2935
return args
3036

3137
return inner

0 commit comments

Comments
 (0)