[router] add py binding unit tests to coverage 80% (#10043)

This commit is contained in:
Keyang Ru
2025-09-05 08:40:21 -07:00
committed by GitHub
parent bd7f882142
commit 045ab92dc0
10 changed files with 2649 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
import sys
from pathlib import Path
# Ensure local sources in py_src are importable ahead of any installed package
_ROOT = Path(__file__).resolve().parents[1]
_SRC = _ROOT / "py_src"
if str(_SRC) not in sys.path:
sys.path.insert(0, str(_SRC))