Skip to content

Commit

Permalink
fix: add tests yandex smart captcha
Browse files Browse the repository at this point in the history
  • Loading branch information
Sepera-okeq committed Nov 25, 2024
1 parent 588680e commit 9fe65b5
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/test_yandex_smart_captcha.py
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()

0 comments on commit 9fe65b5

Please sign in to comment.