mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-12-16 21:28:03 +08:00
Add test for appending to Mix install with options (#1137)
This commit is contained in:
parent
e5092e4c99
commit
5e966bfb68
1 changed files with 26 additions and 0 deletions
|
|
@ -99,6 +99,32 @@ defmodule Livebook.Runtime.DependenciesTest do
|
||||||
# Result
|
# Result
|
||||||
:ok\
|
:ok\
|
||||||
"""}
|
"""}
|
||||||
|
|
||||||
|
assert Dependencies.add_mix_deps(
|
||||||
|
"""
|
||||||
|
Mix.install(
|
||||||
|
[
|
||||||
|
{:req, "~> 0.2.0"}
|
||||||
|
],
|
||||||
|
system_env: [
|
||||||
|
# {"XLA_TARGET", "cuda111"}
|
||||||
|
]
|
||||||
|
)\
|
||||||
|
""",
|
||||||
|
[@kino]
|
||||||
|
) ==
|
||||||
|
{:ok,
|
||||||
|
"""
|
||||||
|
Mix.install(
|
||||||
|
[
|
||||||
|
{:req, "~> 0.2.0"},
|
||||||
|
{:kino, "~> 0.5.0"}
|
||||||
|
],
|
||||||
|
system_env: [
|
||||||
|
# {"XLA_TARGET", "cuda111"}
|
||||||
|
]
|
||||||
|
)\
|
||||||
|
"""}
|
||||||
end
|
end
|
||||||
|
|
||||||
test "does not add the dependency if it already exists" do
|
test "does not add the dependency if it already exists" do
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue