mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-06-11 11:56:18 +00:00
The test_r03_placeholder_registered_before_send test used a bare MagicMock dispatcher whose subscribe never resolved event futures, causing send() to block for DEFAULT_TIMEOUT (15s). Add a resolving subscribe mock matching the pattern from the fixture fix on fix/test-timeout-waste.
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