Skip to content

Commit 168f205

Browse files
author
Andrei D
committed
Fix NoCaptcha tests
1 parent 4c6ef43 commit 168f205

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_NoCaptcha.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class TestNoCaptcha(MainAntiCaptcha):
1717

1818
def test_nocaptcha_params(self):
1919
default_init_params = ["self", "anticaptcha_key", "sleep_time", "callbackUrl"]
20-
default_handler_params = ["self", "websiteURL", "websiteKey"]
20+
default_handler_params = ["self", "websiteURL", "websiteKey", 'recaptchaDataSValue']
2121
# get customcaptcha init and captcha_handler params
2222
aioinit_params = inspect.getfullargspec(NoCaptchaTask.aioNoCaptchaTask.__init__)
2323
aiohandler_params = inspect.getfullargspec(NoCaptchaTask.aioNoCaptchaTask.captcha_handler)
@@ -54,5 +54,5 @@ def test_create_task_payload(self):
5454
# check all dict keys
5555
assert ["clientKey", "task", "softId"] == list(request_payload.keys())
5656
assert request_payload["softId"] == config.app_key
57-
assert ["type", "websiteURL", "websiteKey"] == list(request_payload["task"].keys())
57+
assert ["type", "websiteURL", "websiteKey", 'recaptchaDataSValue'] == list(request_payload["task"].keys())
5858
assert request_payload["task"]["type"] == "NoCaptchaTask"

0 commit comments

Comments
 (0)