diff --git a/tests/_files/test_animation.py b/tests/_files/test_animation.py index 23ec3b50a..e43c01583 100644 --- a/tests/_files/test_animation.py +++ b/tests/_files/test_animation.py @@ -322,7 +322,7 @@ class TestAnimationWithRequest(TestAnimationBase): ) assert message.reply_to_message is None else: - with pytest.raises(BadRequest, match="message not found"): + with pytest.raises(BadRequest, match="Message to reply not found"): await default_bot.send_animation( chat_id, animation, reply_to_message_id=reply_to_message.message_id ) diff --git a/tests/_files/test_contact.py b/tests/_files/test_contact.py index d7906a9ee..3f44ed250 100644 --- a/tests/_files/test_contact.py +++ b/tests/_files/test_contact.py @@ -156,7 +156,7 @@ class TestContactWithRequest(TestContactBase): ) assert message.reply_to_message is None else: - with pytest.raises(BadRequest, match="message not found"): + with pytest.raises(BadRequest, match="Message to reply not found"): await default_bot.send_contact( chat_id, contact=contact, reply_to_message_id=reply_to_message.message_id ) diff --git a/tests/_files/test_document.py b/tests/_files/test_document.py index f5ccdbeb8..5026bfe69 100644 --- a/tests/_files/test_document.py +++ b/tests/_files/test_document.py @@ -335,7 +335,7 @@ class TestDocumentWithRequest(TestDocumentBase): ) assert message.reply_to_message is None else: - with pytest.raises(BadRequest, match="message not found"): + with pytest.raises(BadRequest, match="Message to reply not found"): await default_bot.send_document( chat_id, document, reply_to_message_id=reply_to_message.message_id ) diff --git a/tests/_files/test_inputmedia.py b/tests/_files/test_inputmedia.py index f00dd1656..231670367 100644 --- a/tests/_files/test_inputmedia.py +++ b/tests/_files/test_inputmedia.py @@ -822,7 +822,7 @@ class TestSendMediaGroupWithRequest: ) assert [m.reply_to_message is None for m in messages] else: - with pytest.raises(BadRequest, match="message not found"): + with pytest.raises(BadRequest, match="Message to reply not found"): await default_bot.send_media_group( chat_id, media_group, reply_to_message_id=reply_to_message.message_id ) diff --git a/tests/_files/test_location.py b/tests/_files/test_location.py index aef25c970..9df749df1 100644 --- a/tests/_files/test_location.py +++ b/tests/_files/test_location.py @@ -189,7 +189,7 @@ class TestLocationWithRequest: ) assert message.reply_to_message is None else: - with pytest.raises(BadRequest, match="message not found"): + with pytest.raises(BadRequest, match="Message to reply not found"): await default_bot.send_location( chat_id, location=location, reply_to_message_id=reply_to_message.message_id ) diff --git a/tests/_files/test_photo.py b/tests/_files/test_photo.py index 9f85bec5e..a8044a9d5 100644 --- a/tests/_files/test_photo.py +++ b/tests/_files/test_photo.py @@ -357,7 +357,7 @@ class TestPhotoWithRequest(TestPhotoBase): ) assert message.reply_to_message is None else: - with pytest.raises(BadRequest, match="message not found"): + with pytest.raises(BadRequest, match="Message to reply not found"): await default_bot.send_photo( chat_id, photo_file, reply_to_message_id=reply_to_message.message_id ) diff --git a/tests/_files/test_sticker.py b/tests/_files/test_sticker.py index c8b9b02ad..b47ada8f0 100644 --- a/tests/_files/test_sticker.py +++ b/tests/_files/test_sticker.py @@ -399,7 +399,7 @@ class TestStickerWithRequest(TestStickerBase): ) assert message.reply_to_message is None else: - with pytest.raises(BadRequest, match="message not found"): + with pytest.raises(BadRequest, match="Message to reply not found"): await default_bot.send_sticker( chat_id, sticker, reply_to_message_id=reply_to_message.message_id ) diff --git a/tests/_files/test_venue.py b/tests/_files/test_venue.py index 9631d562d..3a6325280 100644 --- a/tests/_files/test_venue.py +++ b/tests/_files/test_venue.py @@ -171,7 +171,7 @@ class TestVenueWithRequest(TestVenueBase): ) assert message.reply_to_message is None else: - with pytest.raises(BadRequest, match="message not found"): + with pytest.raises(BadRequest, match="Message to reply not found"): await default_bot.send_venue( chat_id, venue=venue, reply_to_message_id=reply_to_message.message_id ) diff --git a/tests/_files/test_video.py b/tests/_files/test_video.py index b2ec10981..65e510b71 100644 --- a/tests/_files/test_video.py +++ b/tests/_files/test_video.py @@ -359,7 +359,7 @@ class TestVideoWithRequest(TestVideoBase): ) assert message.reply_to_message is None else: - with pytest.raises(BadRequest, match="message not found"): + with pytest.raises(BadRequest, match="Message to reply not found"): await default_bot.send_video( chat_id, video, reply_to_message_id=reply_to_message.message_id ) diff --git a/tests/_files/test_videonote.py b/tests/_files/test_videonote.py index b931678d8..751bbc03f 100644 --- a/tests/_files/test_videonote.py +++ b/tests/_files/test_videonote.py @@ -258,7 +258,7 @@ class TestVideoNoteWithRequest(TestVideoNoteBase): ) assert message.reply_to_message is None else: - with pytest.raises(BadRequest, match="message not found"): + with pytest.raises(BadRequest, match="Message to reply not found"): await default_bot.send_video_note( chat_id, video_note, reply_to_message_id=reply_to_message.message_id ) diff --git a/tests/_files/test_voice.py b/tests/_files/test_voice.py index b29260d5c..13091ff18 100644 --- a/tests/_files/test_voice.py +++ b/tests/_files/test_voice.py @@ -308,7 +308,7 @@ class TestVoiceWithRequest(TestVoiceBase): ) assert message.reply_to_message is None else: - with pytest.raises(BadRequest, match="message not found"): + with pytest.raises(BadRequest, match="Message to reply not found"): await default_bot.send_voice( chat_id, voice, reply_to_message_id=reply_to_message.message_id ) diff --git a/tests/_payment/test_invoice.py b/tests/_payment/test_invoice.py index cc4f3961b..4b8f308a1 100644 --- a/tests/_payment/test_invoice.py +++ b/tests/_payment/test_invoice.py @@ -276,7 +276,7 @@ class TestInvoiceWithRequest(TestInvoiceBase): ) assert message.reply_to_message is None else: - with pytest.raises(BadRequest, match="message not found"): + with pytest.raises(BadRequest, match="Message to reply not found"): await default_bot.send_invoice( chat_id, self.title, diff --git a/tests/test_bot.py b/tests/test_bot.py index ba3c82af6..988034db1 100644 --- a/tests/test_bot.py +++ b/tests/test_bot.py @@ -2180,7 +2180,7 @@ class TestBotWithRequest: ) assert message.reply_to_message is None else: - with pytest.raises(BadRequest, match="message not found"): + with pytest.raises(BadRequest, match="Message to reply not found"): await default_bot.send_poll( chat_id, question=question, @@ -2237,7 +2237,7 @@ class TestBotWithRequest: ) assert message.reply_to_message is None else: - with pytest.raises(BadRequest, match="message not found"): + with pytest.raises(BadRequest, match="Message to reply not found"): await default_bot.send_dice( chat_id, reply_to_message_id=reply_to_message.message_id ) @@ -2570,7 +2570,7 @@ class TestBotWithRequest: ) assert message.reply_to_message is None else: - with pytest.raises(BadRequest, match="message not found"): + with pytest.raises(BadRequest, match="Message to reply not found"): await default_bot.send_game( chat_id, game_short_name, reply_to_message_id=reply_to_message.message_id ) @@ -3053,7 +3053,7 @@ class TestBotWithRequest: ) assert message.reply_to_message is None else: - with pytest.raises(BadRequest, match="message not found"): + with pytest.raises(BadRequest, match="Message to reply not found"): await default_bot.send_message( chat_id, "test", reply_to_message_id=reply_to_message.message_id )