Skip to content

Commit 103a558

Browse files
committed
merge test_rpc_virtual into new cross-core testing file
1 parent 0c171c2 commit 103a558

File tree

2 files changed

+15
-20
lines changed

2 files changed

+15
-20
lines changed

deltachat-rpc-client/tests/test_cross_core.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
1+
import subprocess
2+
13
import pytest
24

5+
from deltachat_rpc_client import DeltaChat, Rpc
6+
7+
8+
def test_install_venv_and_use_other_core(tmp_path, get_core_python_env):
9+
venv = get_core_python_env("2.20.0")
10+
python = venv / "bin" / "python"
11+
subprocess.check_call([python, "-m", "pip", "install", "deltachat-rpc-server==2.20.0"])
12+
rpc = Rpc(accounts_dir=tmp_path.joinpath("accounts"), rpc_server_path=venv.joinpath("bin", "deltachat-rpc-server"))
13+
14+
with rpc:
15+
dc = DeltaChat(rpc)
16+
assert dc.rpc.get_system_info()["deltachat_core_version"] == "v2.20.0"
17+
318

419
@pytest.mark.parametrize("version", ["2.20.0", "2.10.0"])
520
def test_qr_setup_contact(alice_and_remote_bob, version) -> None:

deltachat-rpc-client/tests/test_rpc_virtual.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)