1
0
mirror of https://github.com/pypiserver/pypiserver synced 2024-12-20 13:55:49 +01:00
pypiserver/tests
Oz Tiram e6926d56a5
bump bottle to version 0.14-dev (#619)
* bump bottle to version 0.14-dev

Support modern python versions.

This is commit 7af7135965e6e02993fea89d8932a4bc713b6692
from bottle's master branch.

Signed-off-by: Oz Tiram <oz.tiram@gmail.com>

* chore: update declared python versions

Drop everything older than 3.9.

* chore: clean old python versions from tox

Add python3.12 to tox

* fix: remove assigning custom_full path to request

Instead use a function call. This less expensive than
before_request hook (which is invoked to every route).

Signed-off-by: Oz Tiram <oz.tiram@gmail.com>

* fix: correct server adapters name

match those classes found in bottle-0.14-dev

* chore: remove unused custom_host

Signed-off-by: Oz Tiram <oz.tiram@gmail.com>

* fix: redirectio to bad_url_path

moved get_bad_url_redirect_path from core.py to _app.py

Signed-off-by: Oz Tiram <oz.tiram@gmail.com>

* fix: tests for core and _app after moving stuff around

* fix: properly create a Request object for test_redirect_project_encodes_newlines

* chore: emove unused core import

* fix: black formatting

* fix: remove constraint on python 3.12

This was probably relevant because of bottle not supporting this
Python version.

---------

Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
2024-11-08 17:51:39 +01:00
..
__init__.py Added init.py to tests 2016-05-12 20:02:10 -05:00
doubles.py Cleanup code to python 3.6 (#342) 2020-10-07 20:45:51 -05:00
sample_msg.html Use bottle's SimpleTemplate engine to avoid XSS on welcome-page (#77). 2015-02-22 18:43:35 +01:00
test_app.py bump bottle to version 0.14-dev (#619) 2024-11-08 17:51:39 +01:00
test_backend.py Refactor storage operations into separate Backend classes (#348) 2021-02-02 11:44:29 -06:00
test_config.py feat: 🩺 allow customized health check endpoint (#442) 2022-11-02 12:32:20 +01:00
test_core.py bump bottle to version 0.14-dev (#619) 2024-11-08 17:51:39 +01:00
test_docs.py Feature/markdown conversion (#503) 2023-08-15 11:16:30 +02:00
test_init.py chore: make the last supported python version explicit in ci.yaml (#558) 2024-04-01 12:23:42 +02:00
test_main.py FEAT: Switch default hash-algo to sha256 (#459) 2023-09-08 12:30:54 +02:00
test_manage.py Refactor storage operations into separate Backend classes (#348) 2021-02-02 11:44:29 -06:00
test_pkg_helpers.py chore: add tar xz test case (#538) 2023-11-13 16:19:52 +01:00
test_server.py test: Fix running build in offline test environment (#571) 2024-06-23 22:44:57 +00:00
test-ignorelist Backwards-compatible argparse config (not yet in use) (#339) 2020-10-08 19:37:39 -05:00