CLI-level smoke tests using --yaml output against real Twitter API. Default skipped via @pytest.mark.smoke marker + pyproject.toml addopts. Run locally with: uv run pytest -m smoke -v
704 B
704 B
Structured Output Schema
twitter-cli uses a shared agent-friendly envelope for machine-readable output.
Success
ok: true
schema_version: "1"
data: ...
Error
ok: false
schema_version: "1"
error:
code: api_error
message: User @foo not found
Notes
--yamland--jsonboth use this envelope- non-TTY stdout defaults to YAML
- tweet and user lists are returned under
data statusreturnsdata.authenticatedplusdata.userwhoamireturnsdata.user- write commands also support explicit
--json/--yaml
Error Codes
Common structured error codes:
not_authenticatednot_foundinvalid_inputrate_limitedapi_error