Skip to content

Add pytest suite for the LLM-response transform pipeline and /execute API, plus CI to run it.#5

Open
DIYA73 wants to merge 2 commits into
danielkaijzer:mainfrom
DIYA73:tests-and-ci
Open

Add pytest suite for the LLM-response transform pipeline and /execute API, plus CI to run it.#5
DIYA73 wants to merge 2 commits into
danielkaijzer:mainfrom
DIYA73:tests-and-ci

Conversation

@DIYA73

@DIYA73 DIYA73 commented Jul 17, 2026

Copy link
Copy Markdown

Adds a pytest suite covering the parts of the pipeline that don't need hardware or an API key: transform_actions_to_receiver_format and repair_json_response in app.py (the LLM-response -> hardware-command translation, the part most likely to silently break), and /health / /execute in receiver.py via Flask's test client in simulated mode. .github/workflows/tests.yml runs the suite on every push/PR — it installs flask/pyserial/pytest only, not the full requirements.txt, since opencv/PyQt5/RealtimeSTT need system libraries this runner doesn't have and aren't needed for these tests.

Branches off fix/execute-bounds (#3) since some tests cover that fix directly — should collapse to 1 commit once #3 merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant