Skip to content

Commit

Permalink
Fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
amh4r committed Nov 22, 2024
1 parent 444a421 commit 2516d1d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions inngest/_internal/comm_lib/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ async def put(
) -> typing.Union[CommResponse, Exception]:
"""Handle a PUT request."""

self._client.logger.info("Syncing app")
self._client.logger.debug("Syncing app")
syncer = _Syncer(logger=self._client.logger)

if (
Expand Down Expand Up @@ -393,7 +393,7 @@ def put_sync(
) -> typing.Union[CommResponse, Exception]:
"""Handle a PUT request."""

self._client.logger.info("Syncing app")
self._client.logger.debug("Syncing app")
syncer = _Syncer(logger=self._client.logger)

if (
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ extra = [
"types-toml==0.10.8.7",
"types-tornado==5.1.1",
"uvicorn==0.23.2",

# Werkzeug v3.1 deleted something that breaks our minimum Flask version
# (v2.3.0). So for now, only allow Werkzeug versions below v3.1. See this PR
# for the deleted thing: https://github.com/pallets/werkzeug/pull/2967
"werkzeug<3.1",
]

[project.urls]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_introspection/test_digital_ocean.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_cloud_mode_with_signature(self) -> None:
assert isinstance(
net.validate_response_sig(
body=res.get_data(),
headers=res.headers,
headers={k: v for k, v in res.headers},
mode=server_lib.ServerKind.CLOUD,
signing_key=self.signing_key,
),
Expand Down
4 changes: 2 additions & 2 deletions tests/test_introspection/test_flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_cloud_mode_with_signature(self) -> None:
assert isinstance(
net.validate_response_sig(
body=res.get_data(),
headers=res.headers,
headers={k: v for k, v in res.headers},
mode=server_lib.ServerKind.CLOUD,
signing_key=self.signing_key,
),
Expand Down Expand Up @@ -115,7 +115,7 @@ def test_cloud_mode_with_signature_fallback(self) -> None:
assert isinstance(
net.validate_response_sig(
body=res.get_data(),
headers=res.headers,
headers={k: v for k, v in res.headers},
mode=server_lib.ServerKind.CLOUD,
signing_key=signing_key_fallback,
),
Expand Down
2 changes: 1 addition & 1 deletion tests/test_probes/test_flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_signed(self) -> None:
assert isinstance(
net.validate_response_sig(
body=res.get_data(),
headers=res.headers,
headers={k: v for k, v in res.headers},
mode=server_lib.ServerKind.CLOUD,
signing_key=self.signing_key,
),
Expand Down

0 comments on commit 2516d1d

Please sign in to comment.