mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-05-12 10:34:53 +00:00
a667e3cba4
Add live and offline packet-parsing tests using paho-mqtt: - tests/test_mqtt_live.py: schema validation + live integration tests; subscribes to meshcore/SEA/+/packets; validates JSON against schema - tests/mqtt_test_config.ini: broker/topic/timeout config; primary LAN broker (10.0.2.123:1883); letsmesh as documented alternative - tests/fixtures/mqtt_packets.json: 8 real packets from SEA region for offline fallback Run live: pytest -m mqtt Run offline: pytest -m "not mqtt" Collect fixtures: python tests/test_mqtt_live.py --collect-fixtures