Browse Source

Fix tests

pull/56/head
Ben J. Ward 7 years ago
parent
commit
aa5ea96aa0
No known key found for this signature in database
GPG Key ID: 35826D1019D759CC
  1. 6
      test/runtests.jl

6
test/runtests.jl

@ -250,7 +250,7 @@ content = """
Literate.script(inputfile, outdir) Literate.script(inputfile, outdir)
end end
script = read(joinpath(outdir, "inputfile.jl"), String) script = read(joinpath(outdir, "inputfile.jl"), String)
@test occursin("fredrikekre/Literate.jl/blob/gh-pages/latest/", script) @test occursin("fredrikekre/Literate.jl/blob/gh-pages/dev/", script)
# pre- and post-processing # pre- and post-processing
Literate.script(inputfile, outdir, Literate.script(inputfile, outdir,
@ -378,7 +378,7 @@ end
Literate.markdown(inputfile, outdir) Literate.markdown(inputfile, outdir)
end end
markdown = read(joinpath(outdir, "inputfile.md"), String) markdown = read(joinpath(outdir, "inputfile.md"), String)
@test occursin("fredrikekre/Literate.jl/blob/gh-pages/latest/", markdown) @test occursin("fredrikekre/Literate.jl/blob/gh-pages/dev/", markdown)
# pre- and post-processing # pre- and post-processing
Literate.markdown(inputfile, outdir, Literate.markdown(inputfile, outdir,
@ -562,7 +562,7 @@ end
Literate.notebook(inputfile, outdir, execute = false) Literate.notebook(inputfile, outdir, execute = false)
end end
notebook = read(joinpath(outdir, "inputfile.ipynb"), String) notebook = read(joinpath(outdir, "inputfile.ipynb"), String)
@test occursin("fredrikekre/Literate.jl/blob/gh-pages/latest/", notebook) @test occursin("fredrikekre/Literate.jl/blob/gh-pages/dev/", notebook)
# pre- and post-processing # pre- and post-processing
function post(nb) function post(nb)

Loading…
Cancel
Save