From a58e4727c210204453ec4ee5b1dcf89320462434 Mon Sep 17 00:00:00 2001 From: Andrei Date: Wed, 13 Dec 2023 20:23:38 +0300 Subject: [PATCH] Update test_cutcaptcha.py --- tests/test_cutcaptcha.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_cutcaptcha.py b/tests/test_cutcaptcha.py index bfc6dc9a..1b4d4b81 100644 --- a/tests/test_cutcaptcha.py +++ b/tests/test_cutcaptcha.py @@ -65,8 +65,7 @@ def test_basic_data(self): assert isinstance(result, dict) is True if not result["errorId"]: - assert result["status"] == "ready" - assert isinstance(result["solution"], dict) is True + assert result["status"] in ("ready", "processing") assert isinstance(result["taskId"], int) is True else: assert result["errorId"] in (1, 12) @@ -87,8 +86,7 @@ async def test_aio_basic_data(self): assert isinstance(result, dict) is True if not result["errorId"]: - assert result["status"] == "ready" - assert isinstance(result["solution"], dict) is True + assert result["status"] in ("ready", "processing") assert isinstance(result["taskId"], int) is True else: assert result["errorId"] in (1, 12)