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,