feat(http-request-executor): enhance file handling in HTTP requests (#9944)

This commit is contained in:
-LAN-
2024-10-28 17:51:01 +08:00
committed by GitHub
parent 7056009b6a
commit 4da0b70694
2 changed files with 7 additions and 3 deletions

View File

@@ -192,7 +192,7 @@ def test_http_request_node_form_with_file(monkeypatch):
def attr_checker(*args, **kwargs):
assert kwargs["data"] == {"name": "test"}
assert kwargs["files"] == {"file": b"test"}
assert kwargs["files"] == {"file": (None, b"test", "application/octet-stream")}
return httpx.Response(200, content=b"")
monkeypatch.setattr(