Fix tests on windows

This commit is contained in:
Jonatan Kłosko 2023-03-15 18:27:41 +01:00
parent 1bf9b8fa9c
commit 7de7911d32
2 changed files with 6 additions and 6 deletions

View file

@ -1122,16 +1122,16 @@ defmodule Livebook.LiveMarkdown.ExportTest do
end end
test "persists hub id when not default" do test "persists hub id when not default" do
Livebook.Factory.insert_hub(:enterprise, id: "enterprise-persisted-id") Livebook.Factory.insert_hub(:fly, id: "fly-persisted-id")
notebook = %{ notebook = %{
Notebook.new() Notebook.new()
| name: "My Notebook", | name: "My Notebook",
hub_id: "enterprise-persisted-id" hub_id: "fly-persisted-id"
} }
expected_document = """ expected_document = """
<!-- livebook:{"hub_id":"enterprise-persisted-id"} --> <!-- livebook:{"hub_id":"fly-persisted-id"} -->
# My Notebook # My Notebook
""" """

View file

@ -721,17 +721,17 @@ defmodule Livebook.LiveMarkdown.ImportTest do
end end
test "imports notebook hub id when exists" do test "imports notebook hub id when exists" do
Livebook.Factory.insert_hub(:fly, id: "enterprise-persisted-id") Livebook.Factory.insert_hub(:fly, id: "fly-persisted-id")
markdown = """ markdown = """
<!-- livebook:{"hub_id":"enterprise-persisted-id"} --> <!-- livebook:{"hub_id":"fly-persisted-id"} -->
# My Notebook # My Notebook
""" """
{notebook, []} = Import.notebook_from_livemd(markdown) {notebook, []} = Import.notebook_from_livemd(markdown)
assert %Notebook{name: "My Notebook", hub_id: "enterprise-persisted-id"} = notebook assert %Notebook{name: "My Notebook", hub_id: "fly-persisted-id"} = notebook
end end
test "imports ignores hub id when does not exist" do test "imports ignores hub id when does not exist" do