Files
kinect/tests/test_smoke.py
T
kinect-botandsisyphus-dev-ai b38c7bcd82
ci / Linux C++ core (cmake + ctest) (push) Canceled after 0s
ci / Python tracker (pytest) (push) Canceled after 0s
chore(scaffold): project layout, cross-platform build, CI
Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-25 03:23:45 -05:00

20 lines
691 B
Python

"""Scaffold smoke test for the Python side of the project.
Proves pytest collects and runs at least one passing test. The real tracker suite
(MediaPipe pose/segmentation -> IPC) arrives in plan todo 5.
"""
def test_scaffold_collects_and_passes():
assert True
def test_depth_packing_matches_core_layout():
# Mirror of nui::synth::pack_depth so the Python tracker and C++ core agree on the
# Kinect v1 depth word layout. The frozen contract (todo 2) replaces this with a
# generated mirror of the C header.
def pack_depth(depth_mm: int, player: int) -> int:
return ((depth_mm & 0x1FFF) << 3) | (player & 0x7)
assert pack_depth(1000, 1) == (1000 << 3) | 1