From 6189dc1b5cf8cb7fd139561cccc1fd0f827c17c1 Mon Sep 17 00:00:00 2001 From: Jiri Kozel Date: Thu, 14 Dec 2023 11:27:48 +0100 Subject: [PATCH] Add mixed-case test cases --- src/layman/authz/authz_test.py | 1 + src/layman/common/prime_db_schema/publications_test.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/layman/authz/authz_test.py b/src/layman/authz/authz_test.py index 317eaeb2a..47d16313b 100644 --- a/src/layman/authz/authz_test.py +++ b/src/layman/authz/authz_test.py @@ -64,6 +64,7 @@ def test_authorize_publications_decorator_accepts_path(request_path): pytest.param(['ROLE1', 'EVERYONE'], [], ['ROLE1', 'EVERYONE'], id='only-roles'), pytest.param(['ROLE2', 'user1', 'EVERYONE', 'user2'], ['user1', 'user2'], ['ROLE2', 'EVERYONE'], id='more-users-and-roles'), + pytest.param(['mIxEd'], ['mIxEd'], [], id='mixed-case'), ]) def test_split_user_and_role_names(roles_and_users, exp_users, exp_roles): user_names, role_names = split_user_and_role_names(roles_and_users) diff --git a/src/layman/common/prime_db_schema/publications_test.py b/src/layman/common/prime_db_schema/publications_test.py index b9aa82f61..ef9f0d4f3 100644 --- a/src/layman/common/prime_db_schema/publications_test.py +++ b/src/layman/common/prime_db_schema/publications_test.py @@ -44,6 +44,7 @@ def provide_data(self, request): pytest.param({username, workspace_name}, id='username-and-workspace-name'), pytest.param({workspace_name, username}, id='workspace-name-and-username'), pytest.param({'skaljgdalskfglshfgd'}, id='non-existent-username'), + pytest.param({'mIxEd'}, id='mixed-case'), ]) def test_raises(cls, names): with app.app_context():