Skip to content

Commit

Permalink
Update test_rotate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiDrang committed Dec 7, 2023
1 parent 1283349 commit 5c481a9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_rotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def test_no_captcha(self):
result = instance.captcha_handler()

assert isinstance(result, dict) is True
assert result["errorId"] is True
assert result["errorId"] != 0
assert result["taskId"] is None
assert result["errorBody"] == RotateCaptcha.NO_CAPTCHA_ERR
assert result["captchaSolve"] == {}
Expand All @@ -164,7 +164,7 @@ async def test_aio_no_captcha(self):
result = await instance.aio_captcha_handler()

assert isinstance(result, dict) is True
assert result["errorId"] is True
assert result["errorId"] != 0
assert result["taskId"] is None
assert result["errorBody"] == RotateCaptcha.NO_CAPTCHA_ERR
assert result["captchaSolve"] == {}
Expand All @@ -176,7 +176,7 @@ def test_wrong_link(self):
result = instance.captcha_handler(captcha_link=self.get_random_string(length=50))

assert isinstance(result, dict) is True
assert result["errorId"] is True
assert result["errorId"] != 0
assert result["taskId"] is None
assert result["captchaSolve"] == {}
assert result.keys() == GetTaskResultResponseSer().to_dict().keys()
Expand All @@ -187,7 +187,7 @@ def test_wrong_base64(self):
result = instance.captcha_handler(captcha_base64=self.get_random_string(length=50).encode(encoding="UTF-8"))

assert isinstance(result, dict) is True
assert result["errorId"] is True
assert result["errorId"] != 0
assert result["taskId"] is None
assert result["captchaSolve"] == {}
assert result.keys() == GetTaskResultResponseSer().to_dict().keys()
Expand All @@ -199,7 +199,7 @@ async def test_aio_wrong_link(self):
result = await instance.aio_captcha_handler(captcha_link=self.get_random_string(length=50))

assert isinstance(result, dict) is True
assert result["errorId"] is True
assert result["errorId"] != 0
assert result["taskId"] is None
assert result["captchaSolve"] == {}
assert result.keys() == GetTaskResultResponseSer().to_dict().keys()
Expand All @@ -213,7 +213,7 @@ async def test_aio_wrong_base64(self):
)

assert isinstance(result, dict) is True
assert result["errorId"] is True
assert result["errorId"] != 0
assert result["taskId"] is None
assert result["captchaSolve"] == {}
assert result.keys() == GetTaskResultResponseSer().to_dict().keys()

0 comments on commit 5c481a9

Please sign in to comment.