Commit Graph

12 Commits

Author SHA1 Message Date
bc119ff2ae feat: add backup.retain_days config and local docker-compose for integration tests
- Add [backup] retain_days to config (default 1); --days becomes optional
- Add scripts/docker-compose.yml (azurite) for local integration testing
- Integration tests now use assets/local.toml and localhost endpoints
- Update .gitignore and CLAUDE.md accordingly

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 13:27:24 +08:00
8c70e8681b test: add CLI integration test for delete command using s101.toml
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 12:34:08 +08:00
c9542d36a9 test: add CLI tests for delete command
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 12:26:38 +08:00
dba7f7bdc9 test: add edge cases for backup cutoff filtering
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 23:24:32 +08:00
d3ff2dae98 fix: update integration test, remove unused import, fix stale comment
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 23:07:29 +08:00
e0eff89e8c refactor: change backup_orders to use cutoff param instead of start/end
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 23:02:18 +08:00
ca5f5fb06d feat: add integration tests and seed script for Azure Storage emulator
- scripts/seed_test_data.py: seeds 45 orders (30 Recived + 15 Payed) across
  5 users and 3 days into the emulator
- tests/test_integration.py: full pipeline test (seed → scan → backup → delete)
  with table cleanup before/after
- pytest marker "integration" to separate from unit tests

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 16:21:07 +08:00
57c985ee3e feat: delete command — batch delete from CSV with confirmation
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 16:02:06 +08:00
cb7d9212e0 feat: backup command — filter scan CSV by state and date range
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 15:57:36 +08:00
dd5edfe03c feat: CSV utilities for order entity serialization
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 15:50:23 +08:00
3239fd1032 feat: config module with TOML loading
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 15:05:55 +08:00
910be27cc4 feat: project scaffold with uv, click, azure-data-tables
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 14:59:11 +08:00