From 7cde6ca268754f029484e6cbded4363117df2e9b Mon Sep 17 00:00:00 2001 From: Bibo-Joshi Date: Thu, 30 Jan 2020 19:57:16 +0100 Subject: [PATCH] temporarily skip tests failing b/c missing api 4.5 (#1738) --- tests/test_animation.py | 1 + tests/test_audio.py | 1 + tests/test_document.py | 1 + tests/test_photo.py | 1 + tests/test_sticker.py | 1 + tests/test_video.py | 1 + tests/test_videonote.py | 1 + tests/test_voice.py | 1 + 8 files changed, 8 insertions(+) diff --git a/tests/test_animation.py b/tests/test_animation.py index ae694fde5..f2a61868f 100644 --- a/tests/test_animation.py +++ b/tests/test_animation.py @@ -109,6 +109,7 @@ class TestAnimation(object): @flaky(3, 1) @pytest.mark.timeout(10) + @pytest.mark.skip(reason='Doesnt work without API 4.5') def test_resend(self, bot, chat_id, animation): message = bot.send_animation(chat_id, animation.file_id) diff --git a/tests/test_audio.py b/tests/test_audio.py index 9433edbd7..6c2a28abb 100644 --- a/tests/test_audio.py +++ b/tests/test_audio.py @@ -119,6 +119,7 @@ class TestAudio(object): @flaky(3, 1) @pytest.mark.timeout(10) + @pytest.mark.skip(reason='Doesnt work without API 4.5') def test_resend(self, bot, chat_id, audio): message = bot.send_audio(chat_id=chat_id, audio=audio.file_id) diff --git a/tests/test_document.py b/tests/test_document.py index 2aa4d5dd7..d3af6a82c 100644 --- a/tests/test_document.py +++ b/tests/test_document.py @@ -108,6 +108,7 @@ class TestDocument(object): @flaky(3, 1) @pytest.mark.timeout(10) + @pytest.mark.skip(reason='Doesnt work without API 4.5') def test_send_resend(self, bot, chat_id, document): message = bot.send_document(chat_id=chat_id, document=document.file_id) diff --git a/tests/test_photo.py b/tests/test_photo.py index 9a3d8aee6..25d30f3b5 100644 --- a/tests/test_photo.py +++ b/tests/test_photo.py @@ -141,6 +141,7 @@ class TestPhoto(object): @flaky(3, 1) @pytest.mark.timeout(10) + @pytest.mark.skip(reason='Doesnt work without API 4.5') def test_get_and_download(self, bot, photo): new_file = bot.getFile(photo.file_id) diff --git a/tests/test_sticker.py b/tests/test_sticker.py index 3dab2605c..99df11dad 100644 --- a/tests/test_sticker.py +++ b/tests/test_sticker.py @@ -108,6 +108,7 @@ class TestSticker(object): @flaky(3, 1) @pytest.mark.timeout(10) + @pytest.mark.skip(reason='Doesnt work without API 4.5') def test_resend(self, bot, chat_id, sticker): message = bot.send_sticker(chat_id=chat_id, sticker=sticker.file_id) diff --git a/tests/test_video.py b/tests/test_video.py index 2e009ff68..7b2154bc1 100644 --- a/tests/test_video.py +++ b/tests/test_video.py @@ -128,6 +128,7 @@ class TestVideo(object): @flaky(3, 1) @pytest.mark.timeout(10) + @pytest.mark.skip(reason='Doesnt work without API 4.5') def test_resend(self, bot, chat_id, video): message = bot.send_video(chat_id, video.file_id) diff --git a/tests/test_videonote.py b/tests/test_videonote.py index ebc1b24bd..ffbbffb31 100644 --- a/tests/test_videonote.py +++ b/tests/test_videonote.py @@ -96,6 +96,7 @@ class TestVideoNote(object): @flaky(3, 1) @pytest.mark.timeout(10) + @pytest.mark.skip(reason='Doesnt work without API 4.5') def test_resend(self, bot, chat_id, video_note): message = bot.send_video_note(chat_id, video_note.file_id) diff --git a/tests/test_voice.py b/tests/test_voice.py index 407bf66f7..22efc9ac1 100644 --- a/tests/test_voice.py +++ b/tests/test_voice.py @@ -98,6 +98,7 @@ class TestVoice(object): @flaky(3, 1) @pytest.mark.timeout(10) + @pytest.mark.skip(reason='Doesnt work without API 4.5') def test_resend(self, bot, chat_id, voice): message = bot.sendVoice(chat_id, voice.file_id)