Skip to content

Commit

Permalink
Cleanup tests a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
rikhuijzer committed Oct 22, 2023
1 parent 05dccb5 commit 40f6651
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mimeoverride.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const CONFIG_PLUTORUNNER = """
PlutoRunner.is_mime_enabled(::MIME"application/vnd.pluto.table+object") = false
PlutoRunner.is_mime_enabled(::MIME"application/vnd.pluto.tree+object") = false
PlutoRunner.PRETTY_STACKTRACES[] = false
"""

Expand Down
9 changes: 8 additions & 1 deletion test/html.jl
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,18 @@ end
])
nb.cells[1].code_folded = true
nb.cells[2].metadata["disabled"] = true
html, _ = notebook2html_helper(nb)
html, _ = notebook2html_helper(nb; use_distributed=false)

@test !contains(html, "1000 + 1")
@test contains(html, "1001")

@test !contains(html, "2000 + 1")
@test !contains(html, "2001")
end

@testset "pluto tree data" begin
nb = Notebook([
Cell("nt = (; A = [1, 2], B = [3, 4])")
])
html, _ = notebook2html_helper(nb; use_distributed=false)
end
2 changes: 2 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ end
@testset "aqua" begin
Aqua.test_all(PlutoStaticHTML; ambiguities=false)
end

nothing

0 comments on commit 40f6651

Please sign in to comment.