Skip to content

Respect MQTT fixtures#313

Merged
MTrab merged 4 commits intomasterfrom
codex/mqtt-fixtures
Feb 11, 2026
Merged

Respect MQTT fixtures#313
MTrab merged 4 commits intomasterfrom
codex/mqtt-fixtures

Conversation

@MTrab
Copy link
Owner

@MTrab MTrab commented Feb 11, 2026

Summary:

  • add a shared fixture loader that understands both single-document API exports and sequential MQTT dumps and reuse it in the device decoding tests.
  • extend tests/test_device_decode.py so every MQTT payload in code-ref/data-samples is validated, and adjust tests/test_fixtures.py plus the docs to mention the extra fixture format.
  • make scripts/dump_mapping.py walk both http.json and mqtt.json fixtures so the rendered snapshots match the live MQTT stream while keeping README.md and DATA_MAPPING.md aligned.

Testing:

  • bash scripts/prepare_test_fixtures.sh
  • source .venv/bin/activate && pytest tests/test_device_decode.py -q
  • source .venv/bin/activate && python scripts/dump_mapping.py

@MTrab MTrab added enhancement New feature or request major Major version release labels Feb 11, 2026
@MTrab MTrab merged commit f96f322 into master Feb 11, 2026
3 checks passed
@MTrab MTrab deleted the codex/mqtt-fixtures branch February 11, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request major Major version release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant