To develop JSON-RPC bindings, clone the deltachat-core-rust repository:
git clone https://github.com/deltachat/deltachat-core-rust.git
To run online tests, set
to a domain of the email server
that can be used to create testing accounts:
to build debug version of
in a separate virtual environment managed by tox.
Creating a new virtual environment
to run the tests each time
scripts/run-rpc-test.sh does is slow
if you are changing the tests or the code
and want to rerun the tests each time.
If you are developing the tests,
it is better to create a persistent virtual environment.
You can do this by running
This creates a virtual environment
venv which you can then enter with:
Then you can run the tests with
Refer to pytest documentation <https://docs.pytest.org/> for details.
If make the changes to Delta Chat core
or Python bindings, you can rebuild the environment by rerunning
It is ok to rebuild the activated environment this way,
you do not need to deactivate or reactivate the environment each time.
Once you have a development environment, you can quickly test things in REPL:
$ python >>> from deltachat_rpc_client import * >>> rpc = Rpc() >>> rpc.start() >>> dc = DeltaChat(rpc) >>> system_info = dc.get_system_info() >>> system_info["level"] 'awesome' >>> rpc.close()