mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-08-20 09:27:20 +02:00
Ship the 0.9.75 source update with improved startup/runtime hardening, operator API key onboarding, Meshtastic MQTT controls, Infonet/MeshChat separation, desktop package versioning, and aircraft telemetry refinements. Also updates focused backend/frontend tests for node settings, Meshtastic MQTT settings, and desktop runtime behavior.
22 lines
694 B
Python
22 lines
694 B
Python
from services.mesh.meshtastic_topics import build_subscription_topics, known_roots, parse_topic_metadata
|
|
|
|
|
|
def test_default_subscription_is_longfast_only():
|
|
assert build_subscription_topics() == ["msh/US/2/e/LongFast/#"]
|
|
assert known_roots() == ["US"]
|
|
|
|
|
|
def test_extra_roots_are_longfast_only():
|
|
assert build_subscription_topics(extra_roots="EU_868,ANZ") == [
|
|
"msh/US/2/e/LongFast/#",
|
|
"msh/EU_868/2/e/LongFast/#",
|
|
"msh/ANZ/2/e/LongFast/#",
|
|
]
|
|
|
|
|
|
def test_parse_longfast_topic_root():
|
|
meta = parse_topic_metadata("msh/US/2/e/LongFast/!12345678")
|
|
assert meta["region"] == "US"
|
|
assert meta["root"] == "US"
|
|
assert meta["channel"] == "LongFast"
|