Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion inbox/mailsync/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def _create_app_impl(self, app) -> None: # type: ignore[no-untyped-def]

@app.route("/unassign", methods=["POST"])
def unassign_account(): # type: ignore[no-untyped-def]
account_id = request.json["account_id"] # type: ignore[index]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore not needed after upgrade

account_id = request.json["account_id"]
ret = self.sync_service.stop_sync(account_id)
if ret:
return "OK"
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements-prod.in
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ urllib3==2.6.3
vobject==0.9.6.1
wcwidth==0.2.6
WebOb==1.8.8
Werkzeug==3.0.6
Werkzeug==3.1.5
zipp==3.20.2
zstandard==0.23.0
6 changes: 3 additions & 3 deletions requirements/requirements-prod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1148,9 +1148,9 @@ webob==1.8.8 \
# via
# -r requirements-prod.in
# flanker
werkzeug==3.0.6 \
--hash=sha256:1bc0c2310d2fbb07b1dd1105eba2f7af72f322e1e455f2f93c993bee8c8a5f17 \
--hash=sha256:a8dd59d4de28ca70471a34cba79bed5f7ef2e036a76b3ab0835474246eb41f8d
werkzeug==3.1.5 \
--hash=sha256:5111e36e91086ece91f93268bb39b4a35c1e6f1feac762c9c822ded0a4e322dc \
--hash=sha256:6a548b0e88955dd07ccb25539d7d0cc97417ee9e179677d22c7041c8f078ce67
# via
# -r requirements-prod.in
# flask
Expand Down
7 changes: 7 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
"""Fixtures don't go here; see util/base.py and friends."""

import importlib
import os

import werkzeug

os.environ["NYLAS_ENV"] = "test"

from pytest import fixture # noqa: PT013
Expand All @@ -18,6 +21,10 @@ def _make_api_client(db, namespace):
from inbox.api.srv import app

app.config["TESTING"] = True
# test_client uses werkzeug.__version__ attribute
Copy link
Contributor Author

@marcospri marcospri Mar 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://werkzeug.palletsprojects.com/en/stable/changes/#version-3-0-0

Deprecate the __version__ attribute. Use feature detection, or importlib.metadata.version("werkzeug"), instead. #2770

# which has been deprecated
# To avoid a rushed flask upgrade we'll patch it here
werkzeug.__version__ = importlib.metadata.version("werkzeug")
with app.test_client() as c:
return TestAPIClient(c, namespace.public_id)

Expand Down