refactor: generate_url to support scenario to build url (#30598)

This commit is contained in:
wangxiaolei
2026-01-06 14:53:38 +08:00
committed by GitHub
parent d12b91a01a
commit 68d68a46a0
4 changed files with 11 additions and 10 deletions

View File

@ -78,7 +78,7 @@ class TestFileSaverImpl:
file_binary=_PNG_DATA,
mimetype=mime_type,
)
mocked_sign_file.assert_called_once_with(mock_tool_file.id, ".png")
mocked_sign_file.assert_called_once_with(tool_file_id=mock_tool_file.id, extension=".png", for_external=True)
def test_save_remote_url_request_failed(self, monkeypatch: pytest.MonkeyPatch):
_TEST_URL = "https://example.com/image.png"