-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from Sepera-okeq/master
Add Yandex Smart Solver
- Loading branch information
Showing
3 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import unittest | ||
|
||
try: | ||
from .abstract import AbstractTest | ||
except ImportError: | ||
from abstract import AbstractTest | ||
|
||
|
||
class YandexSmartCaptchaTest(AbstractTest): | ||
|
||
def test_all_params(self): | ||
params = { | ||
'sitekey': 'FEXfAbHQsToo97VidNVk3j4dC74nGW1DgdxjtNB9', | ||
'url': 'https://captcha-api.yandex.ru/demo', | ||
} | ||
|
||
sends = { | ||
'method': 'yandex', | ||
'sitekey': 'FEXfAbHQsToo97VidNVk3j4dC74nGW1DgdxjtNB9', | ||
'pageurl': 'https://captcha-api.yandex.ru/demo', | ||
} | ||
|
||
return self.send_return(sends, self.solver.yandex_smart, **params) | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters