mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-11-01 04:47:03 +08:00
test(api): refresh generated contract baselines
This commit is contained in:
@@ -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'),
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user