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 # code evaluation. Testing pyproject.toml evaluation is tricky
# because it requires a separate VM, so we only rely on the LV # because it requires a separate VM, so we only rely on the LV
# integration tests. # integration tests.
Pythonx.uv_init("""
[project] ExUnit.CaptureIO.capture_io(fn ->
name = "project" Pythonx.uv_init("""
version = "0.0.0" [project]
requires-python = "==3.13.*" name = "project"
dependencies = [] version = "0.0.0"
""") requires-python = "==3.13.*"
dependencies = []
""")
end)
:ok
end end
setup ctx do setup ctx do