Skip to content

Commit

Permalink
Linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sultanofcardio committed Jan 10, 2025
1 parent 31f329a commit 9be0404
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/apps/workspaces/tests/test_workspaces.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import datetime
import http
import uuid
from typing import Any

import pytest
from sqlalchemy.ext.asyncio import AsyncSession
Expand Down Expand Up @@ -411,7 +412,9 @@ async def test_get_workspace_respondents(
assert lucy_result["details"]
assert tom_result["details"]

sorting_function = lambda x: x["appletDisplayName"]
def sorting_function(x: Any):
return x["appletDisplayName"]

lucy_result_details = sorted(lucy_result["details"], key=sorting_function)
shell_account_result_details = sorted(shell_account_result["details"], key=sorting_function)
tom_result_details = sorted(tom_result["details"], key=sorting_function)
Expand Down Expand Up @@ -445,7 +448,7 @@ async def test_get_workspace_respondents(
assert tom_result_details[1]["roles"] == [Role.OWNER, Role.RESPONDENT]

# Check for the roles of the other participants
assert shell_account_result_details[0]["roles"] == [] # Limited accounts have no roles
assert shell_account_result_details[0]["roles"] == [] # Limited accounts have no roles
assert user_result_details[0]["roles"] == [Role.RESPONDENT]

# test manual, case-insensitive ordering by encrypted nicknames field
Expand Down

0 comments on commit 9be0404

Please sign in to comment.