mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 21:36:29 +03:00
test: add pytest fixture for account manager
This commit is contained in:
@@ -135,9 +135,15 @@ def rpc(tmp_path) -> AsyncGenerator:
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def acfactory(rpc) -> AsyncGenerator:
|
def dc(rpc) -> DeltaChat:
|
||||||
|
"""Return account manager."""
|
||||||
|
return DeltaChat(rpc)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture
|
||||||
|
def acfactory(dc) -> AsyncGenerator:
|
||||||
"""Return account factory fixture."""
|
"""Return account factory fixture."""
|
||||||
return ACFactory(DeltaChat(rpc))
|
return ACFactory(dc)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
|||||||
Reference in New Issue
Block a user