bigbiggerbiggestbot/tests
Danny 214596e26f feat: exercise_aliases table + lookup_exercise() alias-aware wrapper
New SQLite table `exercise_aliases (alias, canonical, source)` seeded
with ~40 common gym shorthand entries (OHP, RDL, "Bench", "Squat",
plural/singular drifts, slang). Lookups go through this table first,
then fall through to the strict exercise_db matcher — so the strict
matcher's "false negative for ambiguous single tokens" property is
preserved while still resolving every-day vocabulary.

Schema decision: every seed row is tagged `source='seed'` and re-seeded
on every init_db (deleted-then-reinserted), so editing the seed dict
in code is the one source of truth. User-inserted rows are tagged
`source='user'` and never touched by re-seeding. Migration path covers
existing DBs where the `source` column didn't exist (those rows tagged
'seed' on first migration, then refreshed from the current seed).

New helper db.lookup_exercise(name) wraps the alias resolution + the
exercise_db.lookup() call.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-01 10:49:24 +03:00
..
__init__.py feat(tg-fitness-bot): add test suite with pre-commit hook 2026-04-13 20:41:03 +02:00
conftest.py feat(tg-fitness-bot): add test suite with pre-commit hook 2026-04-13 20:41:03 +02:00
test_db.py feat: exercise_aliases table + lookup_exercise() alias-aware wrapper 2026-06-01 10:49:24 +03:00
test_exercise_db.py feat: exercise_aliases table + lookup_exercise() alias-aware wrapper 2026-06-01 10:49:24 +03:00
test_parser.py feat(tg-fitness-bot): add test suite with pre-commit hook 2026-04-13 20:41:03 +02:00