From ad73a14502fa99e55a83bc2a686176abe17ca062 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 11 Sep 2026 10:39:28 +0800 Subject: [PATCH] test(api): refresh generated contract baselines --- app/schemas/exports.py | 5 +++++ tests/test_agent_api_gateway.py | 4 ++-- tests/test_agent_skills_middleware.py | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/schemas/exports.py b/app/schemas/exports.py index e8667192b..ace2d04d0 100644 --- a/app/schemas/exports.py +++ b/app/schemas/exports.py @@ -439,6 +439,7 @@ SCHEMA_EXPORTS = { 'Statistic': ('app.schemas.dashboard', 'Statistic'), 'Storage': ('app.schemas.dashboard', 'Storage'), 'StorageAuthUrlData': ('app.schemas.storage', 'StorageAuthUrlData'), + 'StorageCatalogOption': ('app.schemas.storage', 'StorageCatalogOption'), 'StorageConf': ('app.schemas.system', 'StorageConf'), 'StorageLoginStatusData': ('app.schemas.storage', 'StorageLoginStatusData'), 'StorageOperSelectionEventData': ('app.schemas.event', 'StorageOperSelectionEventData'), @@ -474,8 +475,12 @@ SCHEMA_EXPORTS = { 'SubtitleInfo': ('app.schemas.search', 'SubtitleInfo'), 'SystemEnvironmentUpdateData': ('app.schemas.system', 'SystemEnvironmentUpdateData'), 'SystemErrorEventData': ('app.schemas.event', 'SystemErrorEventData'), + 'SystemModuleCatalogInfo': ('app.schemas.system', 'SystemModuleCatalogInfo'), + 'SystemModuleCatalogListData': ('app.schemas.system', 'SystemModuleCatalogListData'), 'SystemModuleInfo': ('app.schemas.system', 'SystemModuleInfo'), 'SystemModuleListData': ('app.schemas.system', 'SystemModuleListData'), + 'SystemModuleSettingInfo': ('app.schemas.system', 'SystemModuleSettingInfo'), + 'SystemModuleSettingListData': ('app.schemas.system', 'SystemModuleSettingListData'), 'SystemSettingsUpdateRequest': ('app.schemas.system', 'SystemSettingsUpdateRequest'), 'SystemUpdateItemStatus': ('app.schemas.system', 'SystemUpdateItemStatus'), 'SystemUpdateRequest': ('app.schemas.system', 'SystemUpdateRequest'), diff --git a/tests/test_agent_api_gateway.py b/tests/test_agent_api_gateway.py index 332ee4497..8b6102d24 100644 --- a/tests/test_agent_api_gateway.py +++ b/tests/test_agent_api_gateway.py @@ -34,8 +34,8 @@ def test_api_operation_registry_matches_migration_batches() -> None: assert len(API_PARITY_OPERATION_SPECS) == 15 assert len(API_MUSIC_OPERATION_SPECS) == 10 assert len(API_SYSTEM_OPERATION_SPECS) == 7 - assert len(API_EXTENDED_OPERATION_SPECS) == 133 - assert len(API_OPERATION_SPECS) == 218 + assert len(API_EXTENDED_OPERATION_SPECS) == 135 + assert len(API_OPERATION_SPECS) == 220 assert {spec.operation_id for spec in API_OPERATION_SPECS} == set(API_OPERATION_ROUTES) assert { "download.list", diff --git a/tests/test_agent_skills_middleware.py b/tests/test_agent_skills_middleware.py index be62e771e..ad5bc902e 100644 --- a/tests/test_agent_skills_middleware.py +++ b/tests/test_agent_skills_middleware.py @@ -155,7 +155,7 @@ async def test_bundled_moviepilot_api_skill_loads_complete_contract() -> None: assert payload["content_limit_bytes"] == MAX_SKILL_CONTENT_BYTES assert payload["truncated"] is False assert payload["truncation_message"] is None - assert len(payload["skill"]["allowed_api_operations"]) == 218 + assert len(payload["skill"]["allowed_api_operations"]) == 220 assert "## API Category Index" in payload["content"] assert "### `workflow.update`" not in payload["content"] assert "api/workflow.md" in payload["supporting_files"]