-
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.
- Loading branch information
1 parent
588680e
commit 9fe65b5
Showing
1 changed file
with
29 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
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() |