chore(deltachat-rpc-client): fix ruff 0.6.0 warnings

This commit is contained in:
link2xt
2024-08-15 16:20:02 +00:00
parent 7fe9342d0d
commit 7432c6de84
4 changed files with 6 additions and 3 deletions

View File

@@ -114,13 +114,13 @@ class ACFactory:
return to_client.run_until(lambda e: e.kind == EventType.INCOMING_MSG)
@pytest.fixture()
@pytest.fixture
def rpc(tmp_path) -> AsyncGenerator:
rpc_server = Rpc(accounts_dir=str(tmp_path / "accounts"))
with rpc_server:
yield rpc_server
@pytest.fixture()
@pytest.fixture
def acfactory(rpc) -> AsyncGenerator:
return ACFactory(DeltaChat(rpc))