mirror of
https://github.com/n0mjs710/dmrlink3
synced 2026-11-08 04:19:24 +00:00
tests/helpers.py — MockDatagramTransport, config factories, GV packet builder
tests/test_protocol.py — registration, de-reg, keepalive, peer-list unicast,
timeslot detection (the TS_CALL_MSK bug fix), unknown opcodes
tests/test_bridge.py — forwarding, packet rewriting (peer-id, TGID, TS, burst-type),
per-TS call_start tracking, Talker Alias seq_id churn immunity,
contention handling (hangtime, TRUNKS bypass)
tests/fake_ipsc_peer.py — standalone asyncio tool for live integration testing;
registers with dmrlink3, sends keepalives, supports --auto-call
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
11 lines
318 B
Python
11 lines
318 B
Python
import sys
|
|
from pathlib import Path
|
|
|
|
_here = Path(__file__).parent # dmrlink3/tests/
|
|
_root = _here.parent # dmrlink3/
|
|
|
|
# dmrlink3 source (const, dmrlink, bridge, …)
|
|
sys.path.insert(0, str(_root))
|
|
# test helpers (helpers.py lives alongside the test files)
|
|
sys.path.insert(0, str(_here))
|