From 9be04049a20b27ac6a0291f7db04bbb6c7844f44 Mon Sep 17 00:00:00 2001 From: sultanofcardio <14842108+sultanofcardio@users.noreply.github.com> Date: Fri, 10 Jan 2025 10:38:18 -0500 Subject: [PATCH] Linting fix --- src/apps/workspaces/tests/test_workspaces.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/apps/workspaces/tests/test_workspaces.py b/src/apps/workspaces/tests/test_workspaces.py index d12230bc762..01d403e0cd1 100644 --- a/src/apps/workspaces/tests/test_workspaces.py +++ b/src/apps/workspaces/tests/test_workspaces.py @@ -1,6 +1,7 @@ import datetime import http import uuid +from typing import Any import pytest from sqlalchemy.ext.asyncio import AsyncSession @@ -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) @@ -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