more tests

This commit is contained in:
Kenneth Kehl
2025-07-01 09:41:17 -07:00
parent c42ccb1c56
commit ede9fa0d1b
2 changed files with 5 additions and 4 deletions

View File

@@ -331,7 +331,7 @@
"filename": "tests/app/user/test_rest.py",
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
"is_verified": false,
"line_number": 110,
"line_number": 111,
"is_secret": false
},
{
@@ -339,7 +339,7 @@
"filename": "tests/app/user/test_rest.py",
"hashed_secret": "0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33",
"is_verified": false,
"line_number": 874,
"line_number": 875,
"is_secret": false
}
],
@@ -374,5 +374,5 @@
}
]
},
"generated_at": "2025-07-01T15:15:11Z"
"generated_at": "2025-07-01T16:40:56Z"
}

View File

@@ -12,6 +12,7 @@ from app import db
from app.dao.service_user_dao import dao_get_service_user, dao_update_service_user
from app.enums import AuthType, KeyType, NotificationType, PermissionType
from app.models import Notification, Permission, User
from app.utils import hilite
from tests.app.db import (
create_organization,
create_service,
@@ -1062,7 +1063,7 @@ def test_find_users_by_email_finds_user_by_full_email(notify_db_session, admin_r
_data=data,
)
assert len(users["data"]) == 1
print(hilite(users["data"]))
assert users["data"][0]["email_address"] == "findel.mestro@foo.com"