From 1dce6dea03971d952965ce3e9b1527b830385de6 Mon Sep 17 00:00:00 2001 From: Becky Smith Date: Wed, 4 Sep 2024 15:30:50 +0100 Subject: [PATCH] Fix typos --- airlock/permissions.py | 2 +- tests/local_db/test_data_access.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/airlock/permissions.py b/airlock/permissions.py index e9c63800..7bc33f54 100644 --- a/airlock/permissions.py +++ b/airlock/permissions.py @@ -138,7 +138,7 @@ def user_can_review_request(user: User, request: "ReleaseRequest"): def check_user_can_currently_review_request(user: User, request: "ReleaseRequest"): """ - This user can currently perform reviewer actions on the on this + This user can currently perform reviewer actions on this request (vote on files, return, release, reject) """ check_user_can_review_request(user, request) diff --git a/tests/local_db/test_data_access.py b/tests/local_db/test_data_access.py index d9481926..7d13d1b0 100644 --- a/tests/local_db/test_data_access.py +++ b/tests/local_db/test_data_access.py @@ -140,7 +140,7 @@ def test_withdraw_file_from_request_file_does_not_exist(): files=[factories.request_file(changes_requested=True, path="foo.txt")], ) - # foo.txt does not exist and can't be withdrawn + # bar.txt does not exist and can't be withdrawn with pytest.raises(exceptions.FileNotFound): dal.withdraw_file_from_request( release_request.id,