Skip to content

Commit 1da03fb

Browse files
committed
Make type checker happy
1 parent e10e2fd commit 1da03fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/tests/unit/graphql/test_core_account.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ async def test_everyone_can_update_password(db: InfrahubDatabase, default_branch
3939
)
4040

4141
assert result.errors is None
42+
assert result.data
4243
assert result.data["InfrahubAccountSelfUpdate"]["ok"] is True
4344

4445
updated_account = await NodeManager.get_one(db=db, id=first_account.id, branch=default_branch)
@@ -80,6 +81,7 @@ async def test_permissions(
8081
)
8182

8283
assert result.errors is None
84+
assert result.data
8385
perms = [edge["node"]["identifier"] for edge in result.data["InfrahubPermissions"]["global_permissions"]["edges"]]
8486
assert perms == [
8587
str(GlobalPermission(action=GlobalPermissions.SUPER_ADMIN.value, decision=PermissionDecision.ALLOW_ALL.value))
@@ -106,4 +108,5 @@ async def test_permissions(
106108
)
107109

108110
assert result.errors is None
111+
assert result.data
109112
assert not result.data["InfrahubPermissions"]["global_permissions"]["edges"]

0 commit comments

Comments
 (0)