mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-10 13:38:09 +08:00
Fix livemd import test on Windows
This commit is contained in:
parent
8f276d2f1e
commit
62a74eb660
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,8 @@
|
||||||
defmodule Livebook.LiveMarkdown.ImportTest do
|
defmodule Livebook.LiveMarkdown.ImportTest do
|
||||||
use ExUnit.Case, async: true
|
use ExUnit.Case, async: true
|
||||||
|
|
||||||
|
import Livebook.TestHelpers
|
||||||
|
|
||||||
alias Livebook.LiveMarkdown.Import
|
alias Livebook.LiveMarkdown.Import
|
||||||
alias Livebook.Notebook
|
alias Livebook.Notebook
|
||||||
alias Livebook.Notebook.Cell
|
alias Livebook.Notebook.Cell
|
||||||
|
@ -1233,7 +1235,7 @@ defmodule Livebook.LiveMarkdown.ImportTest do
|
||||||
describe "file entries" do
|
describe "file entries" do
|
||||||
test "imports file entries" do
|
test "imports file entries" do
|
||||||
markdown = """
|
markdown = """
|
||||||
<!-- livebook:{"file_entries":[{"name":"data.csv","type":"url","url":"https://example.com/data.csv"},{"file":{"file_system_id":"local","path":"/document.pdf"},"name":"document.pdf","type":"file"},{"name":"image.jpg","type":"attachment"}]} -->
|
<!-- livebook:{"file_entries":[{"name":"data.csv","type":"url","url":"https://example.com/data.csv"},{"file":{"file_system_id":"local","path":"#{p("/document.pdf")}"},"name":"document.pdf","type":"file"},{"name":"image.jpg","type":"attachment"}]} -->
|
||||||
|
|
||||||
# My Notebook
|
# My Notebook
|
||||||
"""
|
"""
|
||||||
|
@ -1248,7 +1250,7 @@ defmodule Livebook.LiveMarkdown.ImportTest do
|
||||||
name: "document.pdf",
|
name: "document.pdf",
|
||||||
file: %Livebook.FileSystem.File{
|
file: %Livebook.FileSystem.File{
|
||||||
file_system: %Livebook.FileSystem.Local{},
|
file_system: %Livebook.FileSystem.Local{},
|
||||||
path: "/document.pdf"
|
path: p("/document.pdf")
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
%{type: :url, name: "data.csv", url: "https://example.com/data.csv"}
|
%{type: :url, name: "data.csv", url: "https://example.com/data.csv"}
|
||||||
|
|
Loading…
Add table
Reference in a new issue