Files
dmrlink3/tests/conftest.py
T
Cort BuffingtonandClaude Sonnet 4.6 b41e3f13b6 Add test suite: 49 unit tests for IPSC protocol and bridge routing
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>
2026-06-26 13:53:54 -05:00

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))