mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-11-10 08:28:22 +00:00
fix(tests): mock Seatbelt platform requirements on Linux
This commit is contained in:
parent
1193139aee
commit
1959531e73
1 changed files with 2 additions and 0 deletions
|
|
@ -34,6 +34,8 @@ async def test_pipe_output_boundary(tmp_path, monkeypatch, backend_name, stream,
|
|||
# kernel sandbox support or changing the host launchd domain.
|
||||
monkeypatch.setattr(backend, "_start_process", local._start_process)
|
||||
if backend_name == "seatbelt":
|
||||
monkeypatch.setattr("reme.utils.file_sandbox.path_seatbelt_backend.sys.platform", "darwin")
|
||||
monkeypatch.setattr("reme.utils.file_sandbox.path_seatbelt_backend.shutil.which", lambda _: "sandbox-exec")
|
||||
monkeypatch.setattr(backend, "_has_gui_launchd", AsyncMock(return_value=False))
|
||||
size = OUTPUT_LIMIT_BYTES + extra
|
||||
code = "import os;" + ";".join(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue