feat: async pytest, testcases for starting and finishing shifts

This commit is contained in:
2025-11-26 15:58:59 +04:00
parent c71a460170
commit ed00d1483d
14 changed files with 1933 additions and 1393 deletions

20
tests/fixtures/work_shift_pauses.json vendored Normal file
View File

@@ -0,0 +1,20 @@
[
{
"id": 100,
"started_at": "2024-11-21 18:55:00",
"finished_at": "2024-11-21 19:25:00",
"work_shift_id": 100
},
{
"id": 101,
"started_at": "2024-11-11 23:30:00",
"finished_at": "2024-11-12 00:30:00",
"work_shift_id": 101
},
{
"id": 102,
"started_at": "2024-11-13 09:30:00",
"finished_at": null,
"work_shift_id": 101
}
]