Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Monorepo for all AceDataCloud command-line interface tools.
| `seedream/` | [SeedreamCli](https://github.com/AceDataCloud/SeedreamCli) | Seedream image generation CLI |
| `flux/` | [FluxCli](https://github.com/AceDataCloud/FluxCli) | Flux image generation & editing CLI |
| `serp/` | [SerpCli](https://github.com/AceDataCloud/SerpCli) | Google SERP (Search) CLI |
| `wan/` | [WanCli](https://github.com/AceDataCloud/WanCli) | Tongyi Wansiang video generation CLI |
| `adc/` | [AdcCli](https://github.com/AceDataCloud/AdcCli) | Unified AceDataCloud CLI (all services) |

## How It Works
Expand Down
5 changes: 5 additions & 0 deletions sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ mappings:
exclude:
- .github
- .gitbooks
wan:
repo: AceDataCloud/WanCli
exclude:
- .github
- .gitbooks
adc:
repo: AceDataCloud/AdcCli
exclude:
Expand Down
6 changes: 3 additions & 3 deletions wan/tests/test_integration.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Integration tests (require real API token)."""

import contextlib

import pytest

from wan_cli.core.client import WanClient
Expand All @@ -22,7 +24,5 @@ def test_query_task_integration(api_token):
"""Test querying a task via real API."""
client = WanClient(api_token=api_token)
# Use a dummy task ID - it will return an error but we verify auth works
try:
with contextlib.suppress(Exception):
client.query_task(id="test-task-id", action="retrieve")
except Exception:
pass # Expected for non-existent task
4 changes: 1 addition & 3 deletions wan/tests/test_output.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Tests for output formatting."""

import json

from wan_cli.core.output import (
DEFAULT_MODEL,
DURATIONS,
Expand Down Expand Up @@ -45,7 +43,7 @@ def test_durations():
assert 15 in DURATIONS


def test_print_json(capsys):
def test_print_json():
data = {"key": "value", "number": 42}
print_json(data)
# Output goes to console, not capsys - just verify no exception
Expand Down
2 changes: 1 addition & 1 deletion wan/wan_cli/core/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def request(
) from e

except Exception as e:
if isinstance(e, (WanAPIError, WanTimeoutError)):
if isinstance(e, WanAPIError | WanTimeoutError):
raise
raise WanAPIError(message=str(e)) from e

Expand Down