From f3ea75613887f11b7d3caf17fda3951f45da6f47 Mon Sep 17 00:00:00 2001 From: Andrei Date: Tue, 3 Oct 2023 22:50:50 +0300 Subject: [PATCH] Update test_text.py --- tests/test_text.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/test_text.py b/tests/test_text.py index 2fbcf83c..11792270 100644 --- a/tests/test_text.py +++ b/tests/test_text.py @@ -1,5 +1,3 @@ -import logging - import pytest from tests.conftest import BaseTest @@ -8,7 +6,7 @@ class TestTextCaptcha(BaseTest): - questions = (("en", "Our planet name?"),) + questions = (("en", "Our planet name?"), ("rn", "Название нашей планеты?")) """ Success tests @@ -47,9 +45,8 @@ async def test_aio_basic(self, lang_code, question): result = await instance.aio_captcha_handler(textcaptcha=question) - logging.warning(f"{result = }") assert isinstance(result, dict) is True - logging.warning(f"{result = }") + if not result["errorId"]: assert result["status"] == "ready" assert isinstance(result["solution"]["text"], str) is True