77 Commits

Author SHA1 Message Date
17842a14fd Fix tests using the new api root 2026-06-24 15:54:06 +02:00
bc663582b5 Add get current user
Fixes #7
2026-06-24 15:38:19 +02:00
5f0e5b1bbb Move .env.example to the right place, fix login to also be at /api/v1 2026-06-24 15:37:32 +02:00
62bbbec1d3 Move api to /api/v1
This includes docs, which are now at http://127.0.0.1:8000/api/v1/docs
and the openapi.json, now at http://127.0.0.1:8000/api/v1/openapi.json

Fixes #4
2026-06-24 15:16:13 +02:00
336c6aa34e Add CORS middleware 2026-06-12 13:52:44 +02:00
5e8c826714 Fix issue #3 : allow DISABLE_CARDS envvar 2026-06-12 13:32:55 +02:00
9985251584 Add testing keys in .env.example 2026-06-06 11:18:24 +02:00
871e3f4d0a Update current issues/todo 2026-06-04 15:16:11 +02:00
427e47534a Change status code of 'AA not assigned to group' 2026-06-04 15:05:42 +02:00
d00c5855b7 Add some debug functions for testing 2026-05-26 23:04:58 +02:00
44ea17d87a Improve logging a bit 2026-05-25 16:23:28 +02:00
9160b312c7 Fix the things i broke using logger.info 2026-05-23 20:35:12 +02:00
07669fc1fc I don't know how to test hardware functions 2026-05-23 20:27:16 +02:00
94d428c9d0 Change all instances of print() to logger.info() 2026-05-23 20:17:43 +02:00
a4bedba628 Remove mqtt 2026-05-23 20:09:12 +02:00
e6a248529b Fix test test_create_first_user() 2026-05-23 20:08:10 +02:00
713d41e81c Add door.py tests 2026-05-23 19:49:02 +02:00
6ec3bc5f14 Improve assign_accessauth test and change already assigned to 409 2026-05-23 18:58:59 +02:00
9e6510f465 Remove unused test 2026-05-23 18:58:20 +02:00
5a6cd970dd Fix change_accessauth() not changing timetables
Also fix the test not actually checking the response :/
2026-05-23 18:41:50 +02:00
3d1893d84e Fix door check db session 2026-05-23 17:32:28 +02:00
495535a6de Scanner write-read-delete workflow working! 2026-05-23 00:30:03 +02:00
30b86dad5e Increase login time 2026-05-22 23:14:55 +02:00
92eef82e0a Slight improvements 2026-05-22 21:56:30 +02:00
b81b6954ef Writing, deleting don 2026-05-22 08:28:35 +02:00
61cce57401 Reading done, writing almost 2026-05-21 21:11:46 +02:00
7f9df9db91 Fix test test_timetable_models 2026-05-21 19:26:27 +02:00
0e8f1562c8 Add .coverage to gitignore 2026-05-21 19:25:58 +02:00
a8b5bea8cb Implement background scanner
for now just outputs uid as configured by test.py
2026-05-21 19:20:07 +02:00
f77b96ebcc use complex text from desfire lib 2026-05-21 19:19:27 +02:00
a4d047452a Get env vars with .env 2026-05-21 18:26:40 +02:00
c30516c2bc Finnish check_access 2026-05-21 18:00:05 +02:00
8b4c3cdec9 weekday zero index 2026-05-21 17:56:17 +02:00
9409ebacf3 desfire test app 2026-05-20 20:13:46 +02:00
831a653706 Start timetable checker 2026-05-20 20:02:10 +02:00
c9f1b1833d Debug api 2026-05-20 20:01:38 +02:00
a2d8ccfd7a Add pyscard 2026-05-20 20:00:59 +02:00
357d0d0d65 need to check a thing 2026-05-20 16:33:44 +02:00
fe91adad08 Add doorrouter 2026-05-19 19:57:33 +02:00
0d31b9c146 Merge branch 'tests' 2026-05-19 17:28:18 +02:00
3246081b81 Add pytest-cov 2026-05-18 21:15:12 +02:00
3e86fe223e Explain problem; will fix later maybe 2026-05-18 21:04:17 +02:00
56c8d38cde almost all tests run now 2026-05-18 21:03:47 +02:00
1caffff30d Vscode test suite 2026-05-18 21:03:05 +02:00
46e883200e Fix get_current_user and auth_is_admin creating their own db session instead of getting from get_session 2026-05-16 17:53:42 +02:00
6daf2345be Error handling in following functions 2026-05-16 17:33:06 +02:00
e4b405cdbd Revert "Merge get_user into authenticate_user, it was only doing one db call"
ups, das war ja doch von mehr verwendet...
This reverts commit 0337a90f15.
2026-05-16 17:16:26 +02:00
a820431707 Fix accessToken with custom expiration 2026-05-16 17:12:13 +02:00
5c2e58d5d0 Fix deprecation warning by changing on_event to asynccontesxtmanager 2026-05-16 17:10:40 +02:00
0337a90f15 Merge get_user into authenticate_user, it was only doing one db call 2026-05-16 17:03:33 +02:00