Skip to content

Commit

Permalink
Add missing Werkzeug test requirement
Browse files Browse the repository at this point in the history
Used in `test/unit/util/test_get_url.py` since commit
69ebbb7 .

Pin Werkzeug in `lib/galaxy/dependencies/dev-requirements.txt`
to latest version compatible with pytest-httpserver 1.0.6 .

Fix unit test collection error on Python 3.11:
```
  File "/home/runner/work/galaxy/galaxy/galaxy root/.tox/unit-coverage/lib/python3.11/site-packages/pytest_httpserver/httpserver.py", line 26, in <module>
    from werkzeug.http import parse_authorization_header
ImportError: cannot import name 'parse_authorization_header' from 'werkzeug.http' (/home/runner/work/galaxy/galaxy/galaxy root/.tox/unit-coverage/lib/python3.11/site-packages/werkzeug/http.py)
```
  • Loading branch information
nsoranzo committed Feb 7, 2024
1 parent 10ace7b commit de8d456
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/galaxy/dependencies/dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ urllib3[socks]==1.26.14 ; python_version >= "3.7" and python_version < "3.12"
vine==5.0.0 ; python_version >= "3.7" and python_version < "3.12"
watchdog==2.2.1 ; python_version >= "3.7" and python_version < "3.12"
wcwidth==0.2.6 ; python_version >= "3.7" and python_version < "3.12"
werkzeug==2.2.3 ; python_version >= "3.7" and python_version < "3.12"
wrapt==1.14.1 ; python_version >= "3.7" and python_version < "3.12"
wsproto==1.2.0 ; python_version >= "3.7" and python_version < "3.12"
yarl==1.8.2 ; python_version >= "3.7" and python_version < "3.12"
Expand Down
1 change: 1 addition & 0 deletions packages/util/test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pytest
pytest-httpserver
responses
Werkzeug
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ testfixtures = "*"
tuspy = "*"
twill = "*"
watchdog = "*"
Werkzeug = "*"

[tool.ruff]
select = ["E", "F", "B", "UP"]
Expand Down

0 comments on commit de8d456

Please sign in to comment.