Skip to content

Commit

Permalink
Merge branch 'master' into szokeasaurusrex/celery-queue-consumer-defa…
Browse files Browse the repository at this point in the history
…ult-exchange
  • Loading branch information
sentrivana committed Apr 30, 2024
2 parents f53f68e + 842df5e commit f1671f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 4 additions & 2 deletions tests/integrations/trytond/test_trytond.py
Expand Up @@ -11,7 +11,9 @@
from trytond.wsgi import app as trytond_app

from werkzeug.test import Client

from sentry_sdk.integrations.trytond import TrytondWSGIIntegration
from tests.conftest import unpack_werkzeug_response


@pytest.fixture(scope="function")
Expand Down Expand Up @@ -118,8 +120,8 @@ def _(app, request, e):
"/rpcerror", content_type="application/json", data=json.dumps(_data)
)

(content, status, headers) = response
data = json.loads(next(content))
(content, status, headers) = unpack_werkzeug_response(response)
data = json.loads(content)
assert status == "200 OK"
assert headers.get("Content-Type") == "application/json"
assert data == dict(id=42, error=["UserError", ["Sentry error.", "foo", None]])
6 changes: 2 additions & 4 deletions tox.ini
Expand Up @@ -569,16 +569,14 @@ deps =
tornado-latest: tornado

# Trytond
trytond: werkzeug
trytond-v4: werkzeug<1.0
trytond-v4: trytond~=4.0
trytond-v5: trytond~=5.0
trytond-v6: trytond~=6.0
trytond-v7: trytond~=7.0
trytond-latest: trytond

trytond-v{4}: werkzeug<1.0
trytond-v{5,6,7}: werkzeug<2.0
trytond-latest: werkzeug<2.0

setenv =
PYTHONDONTWRITEBYTECODE=1
OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
Expand Down

0 comments on commit f1671f5

Please sign in to comment.