Skip to content

Commit 5926529

Browse files
committed
fix tests
1 parent 726b768 commit 5926529

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

services/web/server/tests/unit/with_dbs/03/test_users_rest_registration.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,15 @@ async def test_search_and_pre_registration(
126126
found, _ = await assert_status(resp, status.HTTP_200_OK)
127127
assert len(found) == 1
128128
got = UserForAdminGet(
129-
**found[0],
130129
institution=None,
131130
address=None,
132131
city=None,
133132
state=None,
134133
postal_code=None,
135134
country=None,
135+
pre_registration_id=None,
136+
invited_by=None,
137+
**found[0],
136138
)
137139
expected = {
138140
"first_name": logged_user.get("first_name"),
@@ -233,7 +235,7 @@ async def test_list_users_for_admin(
233235
# Access the items field from the paginated response
234236
pending_emails = [
235237
user["email"]
236-
for user in data["items"]
238+
for user in data
237239
if user.get("account_request_status") == "PENDING"
238240
]
239241
for pre_user in pre_registered_users:

0 commit comments

Comments
 (0)