Skip to content

Commit 9fe65b5

Browse files
committed
fix: add tests yandex smart captcha
1 parent 588680e commit 9fe65b5

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

tests/test_yandex_smart_captcha.py

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env python3
2+
3+
import unittest
4+
5+
try:
6+
from .abstract import AbstractTest
7+
except ImportError:
8+
from abstract import AbstractTest
9+
10+
11+
class YandexSmartCaptchaTest(AbstractTest):
12+
13+
def test_all_params(self):
14+
params = {
15+
'sitekey': 'FEXfAbHQsToo97VidNVk3j4dC74nGW1DgdxjtNB9',
16+
'url': 'https://captcha-api.yandex.ru/demo',
17+
}
18+
19+
sends = {
20+
'method': 'yandex',
21+
'sitekey': 'FEXfAbHQsToo97VidNVk3j4dC74nGW1DgdxjtNB9',
22+
'pageurl': 'https://captcha-api.yandex.ru/demo',
23+
}
24+
25+
return self.send_return(sends, self.solver.yandex_smart, **params)
26+
27+
28+
if __name__ == '__main__':
29+
unittest.main()

0 commit comments

Comments
 (0)