MisterWil / abodepy

A thin Python wrapper for the Abode alarm API
MIT License
49 stars 17 forks source link

Tests fail #87

Closed jaraco closed 1 year ago

jaraco commented 1 year ago

Attempting to run the tests against Python 3.10:

 abodepy master $ tox
python installed: astroid==2.3.3,atomicwrites==1.4.1,attrs==22.1.0,certifi==2022.9.24,charset-normalizer==2.1.1,colorlog==6.7.0,coverage==6.5.0,distlib==0.3.6,docutils==0.19,filelock==3.8.0,flake8==4.0.1,flake8-docstrings==1.1.0,flake8-polyfill==1.0.2,idna==3.4,isort==4.3.21,lazy-object-proxy==1.4.3,lomond==0.3.3,mccabe==0.6.1,more-itertools==8.14.0,packaging==21.3,platformdirs==2.5.2,pluggy==0.13.1,psutil==5.6.6,py==1.11.0,pycodestyle==2.8.0,pydocstyle==2.0.0,pyflakes==2.4.0,Pygments==2.13.0,pylint==2.4.2,pyparsing==3.0.9,pytest==5.2.4,pytest-cov==4.0.0,pytest-sugar==0.9.2,pytest-timeout==2.1.0,requests==2.28.1,requests-mock==1.10.0,restructuredtext-lint==1.4.0,six==1.16.0,snowballstemmer==2.2.0,termcolor==2.0.1,toml==0.10.2,tomli==2.0.1,tox==3.14.0,urllib3==1.26.12,virtualenv==20.16.5,wcwidth==0.2.5,wrapt==1.11.2
python run-test-pre: PYTHONHASHSEED='2958913121'
python run-test: commands[0] | npm --prefix ./tests/mock_server install ./tests/mock_server
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)

added 94 packages, and audited 95 packages in 2s

7 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
python run-test: commands[1] | py.test --timeout=30 --cov=abodepy --cov-report term-missing -s
Traceback (most recent call last):
  File "/Users/jaraco/code/MisterWil/abodepy/.tox/python/bin/py.test", line 8, in <module>
    sys.exit(main())
  File "/Users/jaraco/code/MisterWil/abodepy/.tox/python/lib/python3.10/site-packages/_pytest/config/__init__.py", line 71, in main
    config = _prepareconfig(args, plugins)
  File "/Users/jaraco/code/MisterWil/abodepy/.tox/python/lib/python3.10/site-packages/_pytest/config/__init__.py", line 215, in _prepareconfig
    return pluginmanager.hook.pytest_cmdline_parse(
  File "/Users/jaraco/code/MisterWil/abodepy/.tox/python/lib/python3.10/site-packages/pluggy/hooks.py", line 286, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/Users/jaraco/code/MisterWil/abodepy/.tox/python/lib/python3.10/site-packages/pluggy/manager.py", line 93, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/Users/jaraco/code/MisterWil/abodepy/.tox/python/lib/python3.10/site-packages/pluggy/manager.py", line 84, in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
  File "/Users/jaraco/code/MisterWil/abodepy/.tox/python/lib/python3.10/site-packages/pluggy/callers.py", line 203, in _multicall
    gen.send(outcome)
  File "/Users/jaraco/code/MisterWil/abodepy/.tox/python/lib/python3.10/site-packages/_pytest/helpconfig.py", line 89, in pytest_cmdline_parse
    config = outcome.get_result()
  File "/Users/jaraco/code/MisterWil/abodepy/.tox/python/lib/python3.10/site-packages/pluggy/callers.py", line 80, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/Users/jaraco/code/MisterWil/abodepy/.tox/python/lib/python3.10/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/Users/jaraco/code/MisterWil/abodepy/.tox/python/lib/python3.10/site-packages/_pytest/config/__init__.py", line 733, in pytest_cmdline_parse
    self.parse(args)
  File "/Users/jaraco/code/MisterWil/abodepy/.tox/python/lib/python3.10/site-packages/_pytest/config/__init__.py", line 940, in parse
    self._preparse(args, addopts=addopts)
  File "/Users/jaraco/code/MisterWil/abodepy/.tox/python/lib/python3.10/site-packages/_pytest/config/__init__.py", line 887, in _preparse
    self.pluginmanager.load_setuptools_entrypoints("pytest11")
  File "/Users/jaraco/code/MisterWil/abodepy/.tox/python/lib/python3.10/site-packages/pluggy/manager.py", line 299, in load_setuptools_entrypoints
    plugin = ep.load()
  File "/opt/homebrew/Cellar/python@3.10/3.10.7/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/opt/homebrew/Cellar/python@3.10/3.10.7/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "/Users/jaraco/code/MisterWil/abodepy/.tox/python/lib/python3.10/site-packages/_pytest/assertion/rewrite.py", line 133, in exec_module
    source_stat, co = _rewrite_test(fn, self.config)
  File "/Users/jaraco/code/MisterWil/abodepy/.tox/python/lib/python3.10/site-packages/_pytest/assertion/rewrite.py", line 284, in _rewrite_test
    co = compile(tree, fn, "exec", dont_inherit=True)
TypeError: required field "lineno" missing from alias
ERROR: InvocationError for command /Users/jaraco/code/MisterWil/abodepy/.tox/python/bin/py.test --timeout=30 --cov=abodepy --cov-report term-missing -s (exited with code 1)
___________________________________________________________________ summary ____________________________________________________________________
ERROR:   python: commands failed

Upgrading pytest allows the tests to run.