From 06975fc98f409a4420f78ea232b79ec4e13e96e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CMariusz=20Trela=E2=80=9D?= <mtrela@syncad.com> Date: Mon, 17 Mar 2025 14:28:51 +0100 Subject: [PATCH] Fixes in tests. Closing of a wallet doesn't throw an error when a wallet doesn't exist --- tests/beekeepy_test/handle/api_tests/test_api_close.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/beekeepy_test/handle/api_tests/test_api_close.py b/tests/beekeepy_test/handle/api_tests/test_api_close.py index 53999acf..2a638545 100644 --- a/tests/beekeepy_test/handle/api_tests/test_api_close.py +++ b/tests/beekeepy_test/handle/api_tests/test_api_close.py @@ -51,8 +51,7 @@ def test_api_close_double_close( beekeeper.api.close(wallet_name=wallet.name) # ASSERT - with pytest.raises(ErrorInResponseError, match=f"Wallet not found: {wallet.name}"): - beekeeper.api.close(wallet_name=wallet.name) + beekeeper.api.close(wallet_name=wallet.name) def test_api_close_not_existing_wallet(beekeeper: Beekeeper) -> None: @@ -61,5 +60,4 @@ def test_api_close_not_existing_wallet(beekeeper: Beekeeper) -> None: wallet = WalletInfo(password=generate_wallet_password(), name=generate_wallet_name()) # ACT & ASSERT - with pytest.raises(ErrorInResponseError, match=f"Wallet not found: {wallet.name}"): - beekeeper.api.close(wallet_name=wallet.name) + beekeeper.api.close(wallet_name=wallet.name) -- GitLab