| ============================= test session starts ==============================
|
| platform linux -- Python 3.13.13, pytest-9.0.3, pluggy-1.6.0 -- /opt/miniconda3/envs/testbed/bin/python3.13
|
| cachedir: .pytest_cache
|
| rootdir: /repo
|
| configfile: pyproject.toml
|
| collecting ... collected 125 items / 2 errors
|
|
|
| ==================================== ERRORS ====================================
|
| _________________ ERROR collecting tests/test_recaptcha_v2.py __________________
|
| /opt/miniconda3/envs/testbed/lib/python3.13/site-packages/_pytest/python.py:507: in importtestmodule
|
| mod = import_path(
|
| /opt/miniconda3/envs/testbed/lib/python3.13/site-packages/_pytest/pathlib.py:587: in import_path
|
| importlib.import_module(module_name)
|
| /opt/miniconda3/envs/testbed/lib/python3.13/importlib/__init__.py:88: in import_module
|
| return _bootstrap._gcd_import(name[level:], package, level)
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| <frozen importlib._bootstrap>:1395: in _gcd_import
|
| ???
|
| <frozen importlib._bootstrap>:1360: in _find_and_load
|
| ???
|
| <frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
|
| ???
|
| <frozen importlib._bootstrap>:935: in _load_unlocked
|
| ???
|
| /opt/miniconda3/envs/testbed/lib/python3.13/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
|
| exec(co, module.__dict__)
|
| tests/test_recaptcha_v2.py:5: in <module>
|
| from python3_anticaptcha.recaptcha_v2 import ReCaptchaV2
|
| E File "/repo/src/python3_anticaptcha/recaptcha_v2.py", line 155
|
| E if apiDomain is not None:
|
| E ^^
|
| E SyntaxError: invalid syntax
|
| _________________ ERROR collecting tests/test_recaptcha_v3.py __________________
|
| tests/test_recaptcha_v3.py:5: in <module>
|
| from python3_anticaptcha.recaptcha_v3 import ReCaptchaV3
|
| BaseTest = <class 'tests.conftest.BaseTest'>
|
| CaptchaTypeEnm = <enum 'CaptchaTypeEnm'>
|
| __builtins__ = <builtins>
|
| __cached__ = '/repo/tests/__pycache__/test_recaptcha_v3.cpython-313.pyc'
|
| __doc__ = None
|
| __file__ = '/repo/tests/test_recaptcha_v3.py'
|
| __loader__ = <_pytest.assertion.rewrite.AssertionRewritingHook object at 0x7c053aa957f0>
|
| __name__ = 'tests.test_recaptcha_v3'
|
| __package__ = 'tests'
|
| __spec__ = ModuleSpec(name='tests.test_recaptcha_v3', loader=<_pytest.assertion.rewrite.AssertionRewritingHook object at 0x7c053aa957f0>, origin='/repo/tests/test_recaptcha_v3.py')
|
| pytest = <module 'pytest' from '/opt/miniconda3/envs/testbed/lib/python3.13/site-packages/pytest/__init__.py'>
|
| src/python3_anticaptcha/recaptcha_v3.py:9: in <module>
|
| class ReCaptchaV3(CaptchaParams):
|
| CaptchaParams = <class 'python3_anticaptcha.core.base.CaptchaParams'>
|
| CaptchaTypeEnm = <enum 'CaptchaTypeEnm'>
|
| Optional = typing.Optional
|
| __all__ = ('ReCaptchaV3',)
|
| __builtins__ = <builtins>
|
| __cached__ = '/repo/src/python3_anticaptcha/__pycache__/recaptcha_v3.cpython-313.pyc'
|
| __doc__ = None
|
| __file__ = '/repo/src/python3_anticaptcha/recaptcha_v3.py'
|
| __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x7c05398b05f0>
|
| __name__ = 'python3_anticaptcha.recaptcha_v3'
|
| __package__ = 'python3_anticaptcha'
|
| __spec__ = ModuleSpec(name='python3_anticaptcha.recaptcha_v3', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7c05398b05f0>, origin='/repo/src/python3_anticaptcha/recaptcha_v3.py')
|
| src/python3_anticaptcha/recaptcha_v3.py:128: in ReCaptchaV3
|
| if apiDomain is not None:
|
| ^^^^^^^^^
|
| E NameError: name 'apiDomain' is not defined
|
| __firstlineno__ = 9
|
| __init__ = <function ReCaptchaV3.__init__ at 0x7c05398a0180>
|
| __module__ = 'python3_anticaptcha.recaptcha_v3'
|
| __qualname__ = 'ReCaptchaV3'
|
| =========================== short test summary info ============================
|
| ERROR tests/test_recaptcha_v2.py
|
| ERROR tests/test_recaptcha_v3.py - NameError: name 'apiDomain' is not defined
|
| !!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
|
| ========================= 1 warning, 2 errors in 1.09s =========================
|