feat(http-request-executor): enhance file handling in HTTP requests (#9944)
This commit is contained in:
parent
7056009b6a
commit
4da0b70694
2 changed files with 7 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue