Files
glonlas-comfyUI-LMStudio-nodes/pyproject.toml
Gérald LONLASandClaude Opus 4.8 25d7309fa7 test(client): cover all defensive branches in extract_responses_text (#14)
Add four targeted tests hitting the previously uncovered branches in
`client.extract_responses_text` (lines 221–233): dict items with a
non-list content field, content list entries that are not dicts, dict
entries whose text value is not a str, and object items where
`getattr(entry, "text")` is non-str.

Also declare `aiohttp` in the optional [test] extra so the full suite
can import `routes.py` without a ModuleNotFoundError.

Branch coverage: 99% (4 branches missed) → 100% (146/146 branches).

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-27 01:13:45 +08:00

38 lines
696 B
TOML

[project]
name = "comfyui-lmstudio-node"
description = "ComfyUI nodes for remote LMStudio servers via OpenAI API v1-compatible endpoints."
version = "0.1.0"
license = { text = "MIT" }
dependencies = [
"openai>=2.7.1,<3.0.0",
"numpy>=1.25.0",
"Pillow",
]
[project.optional-dependencies]
test = [
"pytest>=8.0.0",
"pytest-cov>=5.0.0",
"aiohttp>=3.9.0",
]
[tool.comfy]
DisplayName = "LMStudio Remote Nodes"
PublisherId = "geraldlonlas"
Icon = ""
web = "web"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--cov=. --cov-report=term-missing --cov-fail-under=90"
[tool.coverage.run]
branch = true
omit = [
"tests/*",
"web/*",
]
[tool.coverage.report]
skip_empty = true