13 Commits

Author SHA1 Message Date
Kevin Bataille
cd5f0a54ac feat(notifier): Add username display and improve config error handling
- Add CROSSFIT_USERNAME from .env to all Telegram notifications
- Make session_config exit safely when config file is missing or invalid
- Remove default hardcoded sessions, return empty list instead
- Update unit tests to reflect new error handling behavior

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-06 15:19:27 +02:00
kbe
b6ea2a4ff1 refactor: Remove CrossfitBooker class and simplify booking system 2025-10-01 17:54:43 +02:00
kbe
fa9d73a9a9 feat: enhance booking process with improved error handling and logging
Added logging to display message when outside booking window in booker.py
Added error handling for asyncio.run in crossfit_booker.py
Added logging for errors during booking process
2025-08-12 02:02:20 +02:00
kbe
cfbb857cfb chore: Revised code linter 2025-08-12 01:50:33 +02:00
kbe
4872b817b3 Merge branch 'refactor/booker' into develop 2025-08-12 01:43:32 +02:00
kbe
a7f9e6bacd Fixed failing tests in test_crossfit_booker_sessions.py
Fixed test_run_auth_failure by patching the correct method (CrossFitBooker.login) and calling the correct method (booker.login())
Fixed test_run_booking_outside_window by patching the correct method (Booker.run) and adding the necessary mocking for the booking cycle
Added proper mocking for auth_token and user_id to avoid authentication errors in the tests
Updated imports to use the src prefix for all imports
Added proper test structure for the booking window logic test
All tests now pass successfully
2025-08-12 01:38:50 +02:00
kbe
90230832ee refactor: Split code into many files 2025-08-12 00:53:16 +02:00
kbe
439c5f3d6f feat: New script for booking test function in shell and python 2025-08-08 22:09:48 +02:00
kbe
2b99bc37de more tests? 2025-07-25 15:47:35 +02:00
kbe
f975cb529f test: More coverage on methods. All tests are passed. 2025-07-25 14:17:12 +02:00
kbe
0baa5b6e3f test: add more coverage 2025-07-25 14:09:03 +02:00
kbe
b2f923a6c3 test: more code coverage 2025-07-25 13:31:03 +02:00
kbe
17cb728dd9 test: add coverage for most methods but still bugs 2025-07-25 13:25:12 +02:00