From 3409f2ad5264d63956ad55e8c62034913788c7dc Mon Sep 17 00:00:00 2001 From: James Roberts <82052595+contrast-jproberts@users.noreply.github.com> Date: Thu, 5 Sep 2024 16:56:26 -0400 Subject: [PATCH] fix Bottle app initialization (#138) Bottle 0.13.0 requires Bottle instances to be initialized with keyword arguments only. Previously, we were using a positional argument. This usage was wrong (passing the __name__ string as a catchall boolean parameter), so it's removed. --- apps/bottle_app.py | 2 +- tests/bottle/test_vulnerable.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/bottle_app.py b/apps/bottle_app.py index 3814d50..76ad7e2 100644 --- a/apps/bottle_app.py +++ b/apps/bottle_app.py @@ -4,7 +4,7 @@ from vulnpy.bottle import add_vulnerable_routes -app = Bottle(__name__) +app = Bottle() add_vulnerable_routes(app) diff --git a/tests/bottle/test_vulnerable.py b/tests/bottle/test_vulnerable.py index 8849bb9..948b798 100644 --- a/tests/bottle/test_vulnerable.py +++ b/tests/bottle/test_vulnerable.py @@ -8,7 +8,7 @@ @pytest.fixture(scope="module") def client(): - app = Bottle(__name__) + app = Bottle() add_vulnerable_routes(app) return TestApp(app)