From 3b6e1313ace882cf02408fa0ae5c3c05f41ec5a0 Mon Sep 17 00:00:00 2001 From: PavelShkurko Date: Sat, 21 Dec 2024 21:49:53 +0100 Subject: [PATCH] Update test_telegram_user.py Fix test issue --- web_app/tests/db/test_telegram_user.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/web_app/tests/db/test_telegram_user.py b/web_app/tests/db/test_telegram_user.py index 824f4554..e6f201a9 100644 --- a/web_app/tests/db/test_telegram_user.py +++ b/web_app/tests/db/test_telegram_user.py @@ -58,14 +58,6 @@ def test_get_user_by_telegram_id_success(telegram_user_db, mock_db_connector): result = telegram_user_db.get_user_by_telegram_id(telegram_id) assert result == expected_user -def test_get_user_by_telegram_id_none(telegram_user_db, mock_db_connector): - """ - Test retrieving a user by telegram ID when no user exists. - """ - mock_db_connector.get_object_by_ield.return_value = None - result = telegram_user_db.get_user_by_telegram_id("unknown") - assert result is None - def test_get_wallet_id_by_telegram_id_success(telegram_user_db, mock_db_connector): """ Test retrieving a wallet ID by telegram ID when the user exists.