mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-11-04 23:37:31 +00:00
[PR #1857] [tests] Add API test suite #2111
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/ComfyUI-Manager#2111
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/ComfyUI-Manager/pull/1857
Author: @christian-byrne
Created: 5/20/2025
Status: 🔄 Open
Base:
main← Head:tests/api-tests📝 Commits (1)
da87651[tests] Add API test suite📊 Changes
21 files changed (+2416 additions, -0 deletions)
View changed files
➕
tests-api/.gitignore(+19 -0)➕
tests-api/README.md(+91 -0)➕
tests-api/__init__.py(+1 -0)➕
tests-api/conftest.py(+237 -0)➕
tests-api/mocks/__init__.py(+1 -0)➕
tests-api/mocks/custom_node_manager.py(+26 -0)➕
tests-api/mocks/patch.py(+116 -0)➕
tests-api/mocks/prompt_server.py(+71 -0)➕
tests-api/mocks/utils.py(+20 -0)➕
tests-api/openapi.yaml(+382 -0)➕
tests-api/requirements-test.txt(+6 -0)➕
tests-api/test_config_api.py(+270 -0)➕
tests-api/test_customnode_api.py(+200 -0)➕
tests-api/test_import.py(+23 -0)➕
tests-api/test_model_api.py(+62 -0)➕
tests-api/test_queue_api.py(+213 -0)➕
tests-api/test_snapshot_api.py(+198 -0)➕
tests-api/test_spec_validation.py(+150 -0)➕
tests-api/utils/__init__.py(+1 -0)➕
tests-api/utils/schema_utils.py(+174 -0)...and 1 more files
📄 Description
Adds comprehensive test suite for the ComfyUI-Manager API, including endpoint tests, OpenAPI spec validation, and mock utilities for isolated testing. The test suite validates all API endpoints against the OpenAPI specification.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.