mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-07 05:24:40 +08:00
Capture pythonx init output in tests
This commit is contained in:
parent
fd141f9306
commit
ac9db0e879
1 changed files with 12 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue