mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-04 20:14:57 +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
|
||||
: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
|
||||
|
||||
test "does not add the dependency if it already exists" do
|
||||
|
|
Loading…
Add table
Reference in a new issue