[PR #1857] [tests] Add API test suite #2111

Open
opened 2026-10-28 21:07:08 +00:00 by bsakaguchi · 0 comments
Owner

📋 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Comfy-Org/ComfyUI-Manager/pull/1857 **Author:** [@christian-byrne](https://github.com/christian-byrne) **Created:** 5/20/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `tests/api-tests` --- ### 📝 Commits (1) - [`da87651`](https://github.com/Comfy-Org/ComfyUI-Manager/commit/da87651e539495f186480f27952ed88d260c0676) [tests] Add API test suite ### 📊 Changes **21 files changed** (+2416 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `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_ </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/ComfyUI-Manager#2111
No description provided.