bbangert / beaker

WSGI middleware for sessions and caching
https://beaker.readthedocs.org/
Other
517 stars 147 forks source link

1.11.0: test suite uses outdated `nose` module #218

Closed kloczek closed 2 years ago

kloczek commented 3 years ago

nose is no longer maintained since 2016 https://github.com/nose-devs/nose/ Generally speaking nose is for python 2.x. I would recommend switch completely to pytest https://docs.nose2.io/en/latest/differences.html

================================================================================== ERRORS ==================================================================================
___________________________________________________________________ ERROR collecting tests/test_cache.py ___________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/beaker-1.11.0/tests/test_cache.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_cache.py:13: in <module>
    from nose import SkipTest
E   ModuleNotFoundError: No module named 'nose'
______________________________________________________________ ERROR collecting tests/test_cache_decorator.py ______________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/beaker-1.11.0/tests/test_cache_decorator.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_cache_decorator.py:7: in <module>
    from nose import SkipTest
E   ModuleNotFoundError: No module named 'nose'
____________________________________________________________ ERROR collecting tests/test_cookie_domain_only.py _____________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/beaker-1.11.0/tests/test_cookie_domain_only.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_cookie_domain_only.py:6: in <module>
    from nose import SkipTest
E   ModuleNotFoundError: No module named 'nose'
______________________________________________________________ ERROR collecting tests/test_cookie_expires.py _______________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/beaker-1.11.0/tests/test_cookie_expires.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_cookie_expires.py:3: in <module>
    from nose.tools import *
E   ModuleNotFoundError: No module named 'nose'
________________________________________________________________ ERROR collecting tests/test_cookie_only.py ________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/beaker-1.11.0/tests/test_cookie_only.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_cookie_only.py:11: in <module>
    from nose import SkipTest
E   ModuleNotFoundError: No module named 'nose'
_________________________________________________________________ ERROR collecting tests/test_database.py __________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/beaker-1.11.0/tests/test_database.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_database.py:7: in <module>
    from nose import SkipTest
E   ModuleNotFoundError: No module named 'nose'
______________________________________________________________ ERROR collecting tests/test_domain_setting.py _______________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/beaker-1.11.0/tests/test_domain_setting.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_domain_setting.py:5: in <module>
    from nose import SkipTest
E   ModuleNotFoundError: No module named 'nose'
_________________________________________________________________ ERROR collecting tests/test_increment.py _________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/beaker-1.11.0/tests/test_increment.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_increment.py:5: in <module>
    from nose import SkipTest
E   ModuleNotFoundError: No module named 'nose'
_________________________________________________________________ ERROR collecting tests/test_memcached.py _________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/beaker-1.11.0/tests/test_memcached.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_memcached.py:11: in <module>
    from nose import SkipTest
E   ModuleNotFoundError: No module named 'nose'
__________________________________________________________________ ERROR collecting tests/test_session.py __________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/beaker-1.11.0/tests/test_session.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_session.py:11: in <module>
    from nose import SkipTest, with_setup
E   ModuleNotFoundError: No module named 'nose'
___________________________________________________________________ ERROR collecting tests/test_sqla.py ____________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/beaker-1.11.0/tests/test_sqla.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_sqla.py:6: in <module>
    from nose import SkipTest
E   ModuleNotFoundError: No module named 'nose'
____________________________________________________________ ERROR collecting tests/test_unicode_cache_keys.py _____________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/beaker-1.11.0/tests/test_unicode_cache_keys.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_unicode_cache_keys.py:8: in <module>
    from nose.tools import *
E   ModuleNotFoundError: No module named 'nose'
============================================================================= warnings summary =============================================================================
beaker/cache.py:134
  /home/tkloczko/rpmbuild/BUILD/beaker-1.11.0/beaker/cache.py:134: DeprecationWarning: invalid escape sequence \*
    """Decorate a function such that its return result is cached,

tests/test_cachemanager.py:59
  tests/test_cachemanager.py:59: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_decorators will be ignored
    def test_decorators():

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
ERROR tests/test_cache.py
ERROR tests/test_cache_decorator.py
ERROR tests/test_cookie_domain_only.py
ERROR tests/test_cookie_expires.py
ERROR tests/test_cookie_only.py
ERROR tests/test_database.py
ERROR tests/test_domain_setting.py
ERROR tests/test_increment.py
ERROR tests/test_memcached.py
ERROR tests/test_session.py
ERROR tests/test_sqla.py
ERROR tests/test_unicode_cache_keys.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 12 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================================================== 2 warnings, 12 errors in 1.14s ======================================================================
pytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo(<process_name>).terminate()'.
kloczek commented 2 years ago

Closing because cfc9bf8a. Thx.

kloczek commented 2 years ago

BTW .. do you have any plans to make new release soon? 🤔