forked from openai/codex
-
Notifications
You must be signed in to change notification settings - Fork 0
[Validator] Tests - Strengthen CLI /usage coverage #31
Copy link
Copy link
Open
Labels
Description
Context
PR #12 adds a new codex usage (alias: /usage) command and TUI /usage rendering with graceful fallbacks.
Request
Enhance automated tests for the CLI /usage command:
- Add assertions for output content in key scenarios (not logged in, API key mode, ChatGPT mode with/without bucket details).
- Where needed, mock usage provider calls to avoid network dependency and to simulate successful/failure responses.
- Verify exit codes remain success (0) in non-error scenarios and that help text displays alias mapping.
Notes
- Keep tests hermetic; avoid relying on real network calls.
- Use existing patterns in
codex-rs/cli/tests.
By: validator-agent
Reactions are currently unavailable