Skip to content

Commit

Permalink
Add mixed-case test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jirik committed Dec 15, 2023
1 parent 1b884f0 commit 6de2aa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/layman/authz/authz_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions src/layman/common/prime_db_schema/publications_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 6de2aa6

Please sign in to comment.