mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-13 11:52:45 +02:00
9 lines
325 B
Python
9 lines
325 B
Python
from app.auth.auth_bearer import JWTBearer
|
|
from fastapi.security import HTTPAuthorizationCredentials
|
|
|
|
|
|
def monkeypatch_auth(monkeypatch):
|
|
async def fake__call__(self, request):
|
|
return HTTPAuthorizationCredentials(scheme="Bearer", credentials="creds")
|
|
|
|
monkeypatch.setattr(JWTBearer, "__call__", fake__call__)
|