From 37f41d10c56a75f1e6f6e137c9585f0e9b2a2788 Mon Sep 17 00:00:00 2001 From: Andrei Date: Sun, 6 Oct 2019 18:38:28 +0300 Subject: [PATCH] Fix aio tests --- tests/test_ImageToText.py | 2 +- tests/test_Recaptcha3Proxyless.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_ImageToText.py b/tests/test_ImageToText.py index b1f1aba..aca996a 100644 --- a/tests/test_ImageToText.py +++ b/tests/test_ImageToText.py @@ -134,7 +134,7 @@ class TestAntiCaptcha(MainAntiCaptcha): @pytest.mark.asyncio async def test_fail_aioimagecaptcha_value(self): with pytest.raises(ValueError): - assert ImageToTextTask.ImageToTextTask( + assert await ImageToTextTask.ImageToTextTask( anticaptcha_key=self.anticaptcha_key_fail, save_format=self.WRONG_SAVE_FORMAT, ) diff --git a/tests/test_Recaptcha3Proxyless.py b/tests/test_Recaptcha3Proxyless.py index 0b896c6..ba0b91e 100644 --- a/tests/test_Recaptcha3Proxyless.py +++ b/tests/test_Recaptcha3Proxyless.py @@ -121,7 +121,7 @@ class TestAntiCaptcha(MainAntiCaptcha): anticaptcha_key=self.anticaptcha_key_fail ) with pytest.raises(ValueError): - assert recaptcha.captcha_handler( + assert await recaptcha.captcha_handler( websiteURL="https://www.google.com/recaptcha/api2/demo", websiteKey="6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-", minScore=0.1, @@ -134,7 +134,7 @@ class TestAntiCaptcha(MainAntiCaptcha): anticaptcha_key=self.anticaptcha_key_fail ) as recaptcha: with pytest.raises(ValueError): - assert recaptcha.captcha_handler( + assert await recaptcha.captcha_handler( websiteURL="https://www.google.com/recaptcha/api2/demo", websiteKey="6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-", minScore=0.1,