Skip to content

Commit

Permalink
Make test a bit more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Jul 25, 2024
1 parent 3ba5c62 commit 980fe3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ async def test_work_package_and_token_creation(

# revoke access and check that work order token cannot be created any more
async def check_download_access_patched(user_id: str, dataset_id: str) -> bool:
return (user_id, dataset_id) != (package.user_id, package.dataset_id)
assert user_id == package.user_id
assert dataset_id == package.dataset_id
return False

access = repository._access
_check_download_access_original = access.check_download_access
Expand Down

0 comments on commit 980fe3d

Please sign in to comment.