Capture pythonx init output in tests

This commit is contained in:
Jonatan Kłosko 2025-02-18 23:10:08 +09:00
parent fd141f9306
commit ac9db0e879

View file

@ -11,13 +11,18 @@ defmodule Livebook.Runtime.EvaluatorTest do
# code evaluation. Testing pyproject.toml evaluation is tricky
# because it requires a separate VM, so we only rely on the LV
# integration tests.
Pythonx.uv_init("""
[project]
name = "project"
version = "0.0.0"
requires-python = "==3.13.*"
dependencies = []
""")
ExUnit.CaptureIO.capture_io(fn ->
Pythonx.uv_init("""
[project]
name = "project"
version = "0.0.0"
requires-python = "==3.13.*"
dependencies = []
""")
end)
:ok
end
setup ctx do