From aab2b714db94292d2034b15435985778ab0ffa7e Mon Sep 17 00:00:00 2001 From: Andrew Wilson Date: Wed, 2 Oct 2024 15:58:42 +1300 Subject: [PATCH] Fix pylance warnings --- tests/fixtures/fixtures_constants.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/fixtures/fixtures_constants.py b/tests/fixtures/fixtures_constants.py index c3c73e80..9067ec37 100644 --- a/tests/fixtures/fixtures_constants.py +++ b/tests/fixtures/fixtures_constants.py @@ -8,7 +8,6 @@ from pytz import BaseTzInfo from src.blueprints.common_models import GroupACL, Parameter, UserACL -from src.blueprints.custom_data_types import Username from src.blueprints.storage_boxes import StorageTypesEnum from src.mytardis_client.endpoints import URI @@ -452,7 +451,7 @@ def split_and_parse_users( ) -> List[UserACL]: return_list = [ UserACL( - user=Username(admin_user), + user=admin_user, is_owner=True, can_download=True, see_sensitive=True, @@ -471,7 +470,7 @@ def split_and_parse_users( sensitive = True return_list.append( UserACL( - user=Username(user), + user=user, is_owner=False, can_download=download, see_sensitive=sensitive,