Skip to content

Commit 0d1fb22

Browse files
chengzeyiclaude
andcommitted
Add testing instructions to README and fix timeout default
- Add "Running Tests" section with examples for pytest - Update timeout example to reflect actual default (36000.0) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent e0e7ace commit 0d1fb22

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ output = client.run("wavespeed-ai/z-image/turbo", input={"prompt": "A cat holds
6262
output = wavespeed.run(
6363
"wavespeed-ai/z-image/turbo",
6464
input={"prompt": "A cat holds a sign that says 'Hello World'"},
65-
timeout=600.0 # Max wait time in seconds (default: None)
65+
timeout=36000.0 # Max wait time in seconds (default: 36000.0)
6666
poll_interval=1.0, # Status check interval (default: 1.0)
6767
)
6868
```
@@ -159,6 +159,19 @@ echo '{"input": {"prompt": "hello"}}' > test_input.json
159159
python handler.py
160160
```
161161

162+
### Running Tests
163+
164+
```bash
165+
# Run all tests
166+
python -m pytest
167+
168+
# Run a single test file
169+
python -m pytest tests/test_api.py
170+
171+
# Run a specific test
172+
python -m pytest tests/test_api.py::TestClient::test_run_success -v
173+
```
174+
162175
### FastAPI Development Server
163176

164177
```bash

0 commit comments

Comments
 (0)