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
8d882ad091
refactor: Move files into src directory
...
Refactored project structure: Moved all Python modules to a src/ directory, updated imports accordingly. Added new environment variables to Dockerfile and docker-compose.yml. Removed Dockerfile.test and TODO file.
2025-08-12 01:10:26 +02:00
kbe
90230832ee
refactor: Split code into many files
2025-08-12 00:53:16 +02:00
kbe
944421c68b
refactor: Booking preferred sessions works
...
I modified the code to book only preferred sessions.
First it displays available sessions in console INFO.
Then if there is sessions that matches preferred ones,
it tries to book them and the notify bout it.
2025-08-12 00:20:21 +02:00
kbe
7161a11905
feat: Scripts display preferred sessions during execution
2025-08-12 00:09:56 +02:00
kbe
d31976084a
feat: Time delta as env var
2025-08-04 21:45:35 +02:00
kbe
90923b0f1c
Less window timing and sessions change
2025-07-29 00:10:06 +02:00
kbe
d2b63ea807
More window timing
2025-07-29 00:06:03 +02:00
kbe
7b4d66c779
10 minutes window end
2025-07-26 09:13:06 +02:00
kbe
4401adfebb
chore: no more 80% match for booking
2025-07-25 15:50:09 +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
kbe
5e597c4d1a
refactor: try to reduce code size
2025-07-24 20:51:39 +02:00
kbe
352fae2d25
Merge branch 'develop'
2025-07-24 16:23:00 +02:00
kbe
3e33ae5132
add a functional file
2025-07-24 15:08:53 +02:00
kbe
cf4780d9d0
feat: only book session in current day, +1 and +2
2025-07-24 12:06:42 +02:00
kbe
ef65069592
feat: only book session during window + 1h
2025-07-21 23:48:44 +02:00
kbe
cacdd74184
feat: only book session during window + 1h
2025-07-21 23:48:14 +02:00
ef7f82bc76
Merge pull request 'feat: ENV var to toggle impossible notification' ( #7 ) from develop into main
...
Reviewed-on: #7
2025-07-21 19:38:02 +00:00
kbe
fcd227e3ed
feat: ENV var to toggle impossible notification
2025-07-21 21:32:05 +02:00
kbe
ed65cd836f
Merge branch 'develop'
2025-07-21 21:12:41 +02:00
kbe
d6e9373321
feat: Send notification when booking is impossible
2025-07-21 21:07:58 +02:00
fa382f4c6b
Merge pull request 'feat: Add a restart file to setup docker' ( #6 ) from develop into main
...
Reviewed-on: #6
2025-07-21 18:51:29 +00:00
kbe
13f18b2854
feat: Add a restart file to setup docker
2025-07-21 20:51:14 +02:00
0c4a7224d3
Merge pull request 'Async notfication' ( #5 ) from develop into main
...
Reviewed-on: #5
2025-07-21 18:40:20 +00:00
kbe
9b5dd8745b
feat: Add TZ on compose file
2025-07-21 20:38:07 +02:00
kbe
d71bfff10e
feat: Make notifier and program async
...
Using asyncio library, notification are now trigerred
asynchronously.
2025-07-21 20:34:57 +02:00
e4656eaf54
Merge pull request 'Tolerance window' ( #4 ) from develop into main
...
Reviewed-on: #4
2025-07-21 13:21:11 +00:00
kbe
3a378c03a6
feat: Add a tolerance window of 5 minutes for reservation
2025-07-21 15:19:38 +02:00
kbe
18cf2a0a18
chore: Add a TODO for later authentication during run
2025-07-21 14:55:54 +02:00
kbe
16d66b74ea
fix: double import in
2025-07-21 12:10:16 +02:00
kbe
66b62d4034
docs: more comments
2025-07-21 02:42:05 +02:00
kbe
b99ddb4525
docs: More comments on files
2025-07-21 02:26:32 +02:00
kbe
2bacf24aad
fix: git commit ammend
2025-07-21 02:01:33 +02:00
kbe
8bd692ff61
style: no more error on ruff linter
2025-07-21 01:18:38 +02:00
kbe
f965020f55
feat: Add a Telegram notification tester
2025-07-21 01:09:18 +02:00
kbe
a67c9face3
chore: add licence and fix doc
2025-07-20 20:15:28 +02:00
2a2c5d889c
Merge pull request 'Add external session preference' ( #3 ) from develop into main
...
Reviewed-on: #3
2025-07-20 15:32:47 +00:00
kbe
a388b808f0
feat: preferred sessions are now external
2025-07-20 17:28:05 +02:00
kbe
c437f908ac
feat: preferred sessions are now external
2025-07-20 17:27:00 +02:00
kbe
a4226e0c6b
feat: preferred sessions are now external
2025-07-20 17:26:46 +02:00
kbe
d7c5c987e8
chore: moved organize preferred sessions by day
2025-07-20 17:15:57 +02:00
kbe
c29f468341
fix: no more version in compose
2025-07-20 16:53:02 +02:00
10d8b63e33
Merge pull request 'Add docker files' ( #2 ) from develop into main
...
Reviewed-on: #2
2025-07-20 14:38:47 +00:00
kbe
5fd084702f
Add docker files
2025-07-20 16:38:14 +02:00
04a255dd56
Merge pull request 'A lot of features' ( #1 ) from develop into main
...
Reviewed-on: #1
2025-07-20 14:32:06 +00:00
kbe
5dcc2a89ae
feat: Add notification for upcoming sessions
2025-07-20 16:17:15 +02:00