Skip to content

Commit 21a787e

Browse files
author
Andrei
committed
Update test_fun_captcha.py
1 parent 78fabe4 commit 21a787e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_fun_captcha.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ async def test_aio_api_key_err(self):
175175
funcaptchaApiJSSubdomain=funcaptchaApiJSSubdomain,
176176
).aio_captcha_handler()
177177
assert result.errorId == 1
178-
assert result.errorCode == "ERROR_KEY_DENIED_ACCESS"
178+
assert result.errorCode in ["ERROR_KEY_DENIED_ACCESS", "ERROR_INVALID_TASK_DATA"]
179179
assert not result.solution
180180

181181
def test_api_key_err(self):
@@ -187,7 +187,7 @@ def test_api_key_err(self):
187187
funcaptchaApiJSSubdomain=funcaptchaApiJSSubdomain,
188188
).captcha_handler()
189189
assert result.errorId == 1
190-
assert result.errorCode == "ERROR_KEY_DENIED_ACCESS"
190+
assert result.errorCode in ["ERROR_KEY_DENIED_ACCESS", "ERROR_INVALID_TASK_DATA"]
191191
assert not result.solution
192192

193193

0 commit comments

Comments
 (0)