Skip to content

Commit

Permalink
Test initial_value without Pluto
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Nov 2, 2021
1 parent 66d6788 commit c3c4d92
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/Bonds.jl
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,15 @@ import Pluto: update_run!, WorkspaceManager, ClientSession, ServerSession, Noteb
count[] += 1
end
"""),
Cell("""
@assert x_old == 1
"""),
Cell("""
@assert x_new == 1
"""),
Cell("""
@assert x_transform == "x"
"""),
])
fakeclient.connected_notebook = notebook

Expand Down Expand Up @@ -183,6 +192,9 @@ import Pluto: update_run!, WorkspaceManager, ClientSession, ServerSession, Noteb
@test noerror(notebook.cells[23])
@test noerror(notebook.cells[24])
@test noerror(notebook.cells[25])
@test noerror(notebook.cells[26])
@test noerror(notebook.cells[27])
@test noerror(notebook.cells[28])


function set_bond_value(name, value, is_first_value=false)
Expand Down Expand Up @@ -239,5 +251,15 @@ import Pluto: update_run!, WorkspaceManager, ClientSession, ServerSession, Noteb
WorkspaceManager.unmake_workspace((🍭, notebook))
🍭.options.evaluation.workspace_use_distributed = false


@test jl_is_runnable(notebook.path)

# should_not_run = """
# @assert 1 == 2
# """
# p = tempname()
# write(p, should_not_run)
# @test !jl_is_runnable(p)

end
end

0 comments on commit c3c4d92

Please sign in to comment.