brewlog/tests/cli
Jon Seager c1a5d763e2
test(gear): add comprehensive test suite for gear entity
Implement complete test coverage for the Gear entity across CLI, API,
timeline, and Datastar integration layers. This completes the Gear
entity implementation with 32 dedicated tests ensuring all CRUD
operations, authentication requirements, and reactive UI updates work
correctly.

Test Coverage:
- CLI commands (11 tests): Authentication, CRUD operations, category
  filtering, notes handling
- API endpoints (13 tests): HTTP status codes, validation, auth
  requirements, filtering
- Timeline integration (1 test): Gear creation events appear correctly
- Datastar fragments (7 tests): Fragment rendering vs full page/JSON
  responses for list, create, update, delete

Changes:
- Add tests/cli/gear_cli.rs with CLI integration tests
- Add tests/server/gear_api.rs with API integration tests
- Update tests/server/timeline.rs with gear timeline test
- Update tests/server/datastar.rs with gear fragment rendering tests
- Register test modules in tests/cli/main.rs and tests/server/main.rs
- Clean up unused imports in tests/server/helpers.rs

All 140 tests pass (8 unit + 37 CLI + 95 server integration).
2026-02-02 16:09:02 +00:00
..
bags_cli.rs test: add test for listing all bags 2025-11-27 14:32:56 +00:00
gear_cli.rs test(gear): add comprehensive test suite for gear entity 2026-02-02 16:09:02 +00:00
helpers.rs test: add cli tests for bags 2025-11-27 14:02:58 +00:00
main.rs test(gear): add comprehensive test suite for gear entity 2026-02-02 16:09:02 +00:00
roasters_cli.rs test: add cli tests for bags 2025-11-27 14:02:58 +00:00
roasts_cli.rs test: add cli tests for bags 2025-11-27 14:02:58 +00:00
tokens_cli.rs feat: add username/password flags to create-token command 2025-11-26 16:32:40 +00:00