Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
chore: replace deprecated httpx data param with content in tests
  • Loading branch information
WilliamBergamin committed Mar 20, 2026
commit 12c09eaa459845ab26d92a0ed6710addfe9d1358
8 changes: 4 additions & 4 deletions tests/adapter_tests/starlette/test_fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async def endpoint(req: Request):
client = TestClient(api)
response = client.post(
"/slack/events",
data=body,
content=body,
headers=self.build_headers(timestamp, body),
)
assert response.status_code == 200
Expand Down Expand Up @@ -138,7 +138,7 @@ async def endpoint(req: Request):
client = TestClient(api)
response = client.post(
"/slack/events",
data=body,
content=body,
headers=self.build_headers(timestamp, body),
)
assert response.status_code == 200
Expand Down Expand Up @@ -182,7 +182,7 @@ async def endpoint(req: Request):
client = TestClient(api)
response = client.post(
"/slack/events",
data=body,
content=body,
headers=self.build_headers(timestamp, body),
)
assert response.status_code == 200
Expand Down Expand Up @@ -254,7 +254,7 @@ async def endpoint(req: Request, foo: str = Depends(get_foo)):
client = TestClient(api)
response = client.post(
"/slack/events",
data=body,
content=body,
headers=self.build_headers(timestamp, body),
)
assert response.status_code == 200
Expand Down
6 changes: 3 additions & 3 deletions tests/adapter_tests/starlette/test_starlette.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ async def endpoint(req: Request):
client = TestClient(api)
response = client.post(
"/slack/events",
data=body,
content=body,
headers=self.build_headers(timestamp, body),
)
assert response.status_code == 200
Expand Down Expand Up @@ -143,7 +143,7 @@ async def endpoint(req: Request):
client = TestClient(api)
response = client.post(
"/slack/events",
data=body,
content=body,
headers=self.build_headers(timestamp, body),
)
assert response.status_code == 200
Expand Down Expand Up @@ -189,7 +189,7 @@ async def endpoint(req: Request):
client = TestClient(api)
response = client.post(
"/slack/events",
data=body,
content=body,
headers=self.build_headers(timestamp, body),
)
assert response.status_code == 200
Expand Down
8 changes: 4 additions & 4 deletions tests/adapter_tests_async/test_async_fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async def endpoint(req: Request):
client = TestClient(api)
response = client.post(
"/slack/events",
data=body,
content=body,
headers=self.build_headers(timestamp, body),
)
assert response.status_code == 200
Expand Down Expand Up @@ -138,7 +138,7 @@ async def endpoint(req: Request):
client = TestClient(api)
response = client.post(
"/slack/events",
data=body,
content=body,
headers=self.build_headers(timestamp, body),
)
assert response.status_code == 200
Expand Down Expand Up @@ -182,7 +182,7 @@ async def endpoint(req: Request):
client = TestClient(api)
response = client.post(
"/slack/events",
data=body,
content=body,
headers=self.build_headers(timestamp, body),
)
assert response.status_code == 200
Expand Down Expand Up @@ -255,7 +255,7 @@ async def endpoint(req: Request, foo: str = Depends(get_foo)):
client = TestClient(api)
response = client.post(
"/slack/events",
data=body,
content=body,
headers=self.build_headers(timestamp, body),
)
assert response.status_code == 200
Expand Down
6 changes: 3 additions & 3 deletions tests/adapter_tests_async/test_async_starlette.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ async def endpoint(req: Request):
client = TestClient(api)
response = client.post(
"/slack/events",
data=body,
content=body,
headers=self.build_headers(timestamp, body),
)
assert response.status_code == 200
Expand Down Expand Up @@ -143,7 +143,7 @@ async def endpoint(req: Request):
client = TestClient(api)
response = client.post(
"/slack/events",
data=body,
content=body,
headers=self.build_headers(timestamp, body),
)
assert response.status_code == 200
Expand Down Expand Up @@ -189,7 +189,7 @@ async def endpoint(req: Request):
client = TestClient(api)
response = client.post(
"/slack/events",
data=body,
content=body,
headers=self.build_headers(timestamp, body),
)
assert response.status_code == 200
Expand Down