Commit Graph
2 Commits
Author SHA1 Message Date
by-aeandCursor Agent 223ec7e15b Add comprehensive test coverage for routes and nodes
Tests cover:
- routes.py: Input validation, path traversal protection, JSON
  error handling, GUID sanitization (12 new tests)
- nodes/ideogram4_nodes.py: Prompt assembly, bbox normalization,
  palette handling, JSON serialization, input coercion (28 new tests)

All tests use mocks via conftest.py to avoid ComfyUI dependencies.
Tests import the repo as a proper package so routes.py relative
imports work unchanged.

CI: Install aiohttp for route tests.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-10-23 21:16:56 +00:00
by-aeandCursor Agent 42ca7fc9eb Add GitHub Actions CI workflow for automated testing
Implement CI pipeline that runs on push and pull requests:

Python checks (3.10, 3.11, 3.12):
- Lint with flake8 (syntax errors and code quality)
- Compile all Python modules
- Run unit test suite

JavaScript checks:
- Validate syntax of all JS files with Node.js

This ensures code quality and catches issues before they reach users.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-10-22 21:51:31 +00:00