From 19e2aa9ed9791587e6310dfae9f8d9649cfdadd1 Mon Sep 17 00:00:00 2001 From: rorywhite200 <125914446+rorywhite200@users.noreply.github.com> Date: Fri, 2 Feb 2024 16:00:56 -0800 Subject: [PATCH 1/3] Update test_decrypt_password.py --- tests/test_decrypt_password.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_decrypt_password.py b/tests/test_decrypt_password.py index c015576..f2f1af0 100644 --- a/tests/test_decrypt_password.py +++ b/tests/test_decrypt_password.py @@ -7,7 +7,7 @@ def test_decrypt_password_type_error(): """ Test if the function returns a TypeError if the type of the input is not correct. """ - with pytest.raises(TypeError, match="string expected as encrypted password"): + with pytest.raises(TypeError, match="string expected for argument encrypted_password"): decrypt_password(123) with pytest.raises(TypeError, match="integer expected as random_seed"): @@ -16,9 +16,9 @@ def test_decrypt_password_type_error(): def test_decrypt_password_value_error(): """ - Test if the function returns a ValueError if the input for the encrypted_password is an emptry string. + Test if the function returns a ValueError if the input for the argument encrypted_password is an empty string. """ - with pytest.raises(ValueError, match="encrypted_password cannot be empty string"): + with pytest.raises(ValueError, match="encrypted_password argument cannot be empty string"): decrypt_password("") From 42809f119834211db8d7d2aaf4dfc9be75fde250 Mon Sep 17 00:00:00 2001 From: rorywhite200 <125914446+rorywhite200@users.noreply.github.com> Date: Fri, 2 Feb 2024 16:02:35 -0800 Subject: [PATCH 2/3] Update test_decrypt_password.py --- tests/test_decrypt_password.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_decrypt_password.py b/tests/test_decrypt_password.py index f2f1af0..9adfed7 100644 --- a/tests/test_decrypt_password.py +++ b/tests/test_decrypt_password.py @@ -7,7 +7,7 @@ def test_decrypt_password_type_error(): """ Test if the function returns a TypeError if the type of the input is not correct. """ - with pytest.raises(TypeError, match="string expected for argument encrypted_password"): + with pytest.raises(TypeError, match="string expected for encrypted password"): decrypt_password(123) with pytest.raises(TypeError, match="integer expected as random_seed"): From 5856ed060cf527f53cd8abbbcd34d2a1af441668 Mon Sep 17 00:00:00 2001 From: rorywhite200 <125914446+rorywhite200@users.noreply.github.com> Date: Fri, 2 Feb 2024 16:05:45 -0800 Subject: [PATCH 3/3] Update test_decrypt_password.py --- tests/test_decrypt_password.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_decrypt_password.py b/tests/test_decrypt_password.py index 9adfed7..2418963 100644 --- a/tests/test_decrypt_password.py +++ b/tests/test_decrypt_password.py @@ -7,7 +7,7 @@ def test_decrypt_password_type_error(): """ Test if the function returns a TypeError if the type of the input is not correct. """ - with pytest.raises(TypeError, match="string expected for encrypted password"): + with pytest.raises(TypeError, match="string expected as encrypted password"): decrypt_password(123) with pytest.raises(TypeError, match="integer expected as random_seed"): @@ -18,7 +18,7 @@ def test_decrypt_password_value_error(): """ Test if the function returns a ValueError if the input for the argument encrypted_password is an empty string. """ - with pytest.raises(ValueError, match="encrypted_password argument cannot be empty string"): + with pytest.raises(ValueError, match="encrypted_password cannot be empty string"): decrypt_password("")