test: add 73 unit tests for app/api/deps.py auth dependencies

Cover all core authentication paths: helpers (_get_token_from_request,
_validate_user_token, _get_user_model, _validate_customer_token),
admin/store/merchant/customer auth (cookie + header + API variants),
optional auth, store permission factories, and store ownership checks.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-19 17:38:31 +01:00
parent e5dbd7ef1a
commit 93731b7173
3 changed files with 1563 additions and 0 deletions

View File