mirror of
https://github.com/status-im/status-cli-tests.git
synced 2026-08-31 05:11:14 +00:00
fix/recreate-communities
status-cli-tests
Status cli tool tests with focus on reliability under unreliable network conditions.
Setup and contribute
Install python 3.12 (might work with other versions as well but was tested only with 3.12)
git clone git@github.com:status-im/status-cli-tests.git
cd status-cli-tests
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pre-commit install
(optional) Overwrite default vars from src/env_vars.py via cli env vars or by adding a .env file
pytest (for all test)
pytest -k "test_one_to_one_with_latency" (for single test)
CI
- Test runs via github actions
Create communities for the tests
We pre create communities for the tests to avoid crowding the network with test data. If you need to re-create them, you can do so with the script:
source .venv/bin/activate
PYTHONPATH=. python src/scripts/create_nodes_with_communities.py
Then delete the old communities in the resources folder and commit the new ones.
License
Licensed and distributed under either of
- MIT license: LICENSE-MIT or http://opensource.org/licenses/MIT
or
- Apache License, Version 2.0, (LICENSE-APACHE-v2 or http://www.apache.org/licenses/LICENSE-2.0)
at your option. These files may not be copied, modified, or distributed except according to those terms.
Languages
Python
100%