Skip to content

RFE: please provide update for werkzeug 3.x #36

Closed

Description

@kloczek

Looks like latest version test suite is not ready for latest werkzeug 3.0.0

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-httpbin-0.10.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-httpbin-0.10.1-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.8.18, pytest-7.4.2, pluggy-1.3.0
rootdir: /home/tkloczko/rpmbuild/BUILD/httpbin-release-v0.10.1
collected 0 items / 1 error

========================================================================================== ERRORS ===========================================================================================
__________________________________________________________________________ ERROR collecting tests/test_httpbin.py ___________________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/httpbin-release-v0.10.1/tests/test_httpbin.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_httpbin.py:12: in <module>
    import httpbin
httpbin/__init__.py:3: in <module>
    from .core import *
httpbin/core.py:35: in <module>
    from werkzeug.http import parse_authorization_header
E   ImportError: cannot import name 'parse_authorization_header' from 'werkzeug.http' (/usr/lib/python3.8/site-packages/werkzeug/http.py)
================================================================================== short test summary info ==================================================================================
ERROR tests/test_httpbin.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
===================================================================================== 1 error in 0.26s ======================================================================================

Activity

  1. frantisekz commented on Dec 8, 2023

    @frantisekz
  2. hartwork commented on Dec 9, 2023

    @hartwork

    Pull request #29 seems related. @kloczek can this be closed as fixed on main?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions