mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-06-11 11:56:18 +00:00
Why: 16 tests covering all G6 findings — reader dispatch for CONTACT_DELETED/CONTACTS_FULL/TUNING_PARAMS (including short-frame guards), send_trace() padding behavior, all 5 new command wrappers (send_raw_data, has_connection, get_tuning, get_contact_by_key, factory_reset two-step), and GET_STATS enum existence + usage. Refs: Forensics report findings N01, N02, N03, N05, N09, R04
MeshCore Tests
Running Tests
To run the tests, first install the development dependencies:
pip install -e ".[dev]"
Then run the tests using pytest:
# Run all tests
pytest
# Run tests with verbose output
pytest -v
# Run a specific test file
pytest tests/unit/test_commands.py
# Run a specific test
pytest tests/unit/test_commands.py::test_send_msg