fix(reception): eliminacion de fondos graficos invasivos y correccion definitiva en resolucion de DNI v3.8.56
This commit is contained in:
@@ -145,3 +145,17 @@ def test_qr_security_service_resolves_dni_with_dots_and_stripping(app, init_data
|
||||
assert resolved.id == u.id
|
||||
assert st == "AUTORIZADO"
|
||||
|
||||
# Escanear con prefijo 'DNI: 45.123.456'
|
||||
res_prefixed, st_p, _ = QRSecurityService.decode_and_resolve_user('DNI: 45.123.456')
|
||||
assert res_prefixed is not None
|
||||
assert res_prefixed.id == u.id
|
||||
assert st_p == "AUTORIZADO"
|
||||
|
||||
# Escanear formato 2026 con fechas que contienen puntos (2 puntos en total: NO debe confundirse con JWT)
|
||||
token_with_dots = '00749743816@PUNTOS@ESTUDIANTE@45123456@G@09.02.89@23.04.26'
|
||||
res_dots, st_d, _ = QRSecurityService.decode_and_resolve_user(token_with_dots)
|
||||
assert res_dots is not None
|
||||
assert res_dots.id == u.id
|
||||
assert st_d == "AUTORIZADO"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user