From 0136cfaf6a5f7ad88ef61405c26926020f57d01e Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 14 Nov 2025 23:27:52 +0000 Subject: [PATCH] test: add pytest fixture for account manager --- .../src/deltachat_rpc_client/pytestplugin.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/pytestplugin.py b/deltachat-rpc-client/src/deltachat_rpc_client/pytestplugin.py index ff3a92985..1516b8f71 100644 --- a/deltachat-rpc-client/src/deltachat_rpc_client/pytestplugin.py +++ b/deltachat-rpc-client/src/deltachat_rpc_client/pytestplugin.py @@ -135,9 +135,15 @@ def rpc(tmp_path) -> AsyncGenerator: @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 ACFactory(DeltaChat(rpc)) + return ACFactory(dc) @pytest.fixture