Skip to content

Commit

Permalink
Update test_text.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiDrang committed Oct 3, 2023
1 parent f605e35 commit f3ea756
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_text.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import logging

import pytest

from tests.conftest import BaseTest
Expand All @@ -8,7 +6,7 @@


class TestTextCaptcha(BaseTest):
questions = (("en", "Our planet name?"),)
questions = (("en", "Our planet name?"), ("rn", "Название нашей планеты?"))

"""
Success tests
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f3ea756

Please sign in to comment.