Skip to content

Commit

Permalink
Update runtests.jl
Browse files Browse the repository at this point in the history
Updating the tests to accommodate failure in downloading from PDFSharp
  • Loading branch information
sambitdash authored Jan 16, 2021
1 parent 3d66b13 commit 0dd1cda
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ using PDFIO.Common: read_pkcs12

include("debugIO.jl")

pdftest_ver = "0.0.8"
pdftest_ver = "0.0.9"
pdftest_link = "https://github.com/sambitdash/PDFTest/archive/v"*pdftest_ver

zipfile = "pdftest-"*pdftest_ver
Expand Down Expand Up @@ -647,13 +647,8 @@ end

@testset "Forms XObjects Test" begin
@test begin
filename="Graphics-wpf.pdf"
result, template_file = testfiles(filename)
result, template, filename = local_testfiles("Graphics-wpf.pdf")
DEBUG && println(filename)
isfile(filename) ||
download("http://www.pdfsharp.net/wiki/GetFile.aspx?"*
"File=%2fGraphics-sample%2fGraphics-wpf.pdf",
filename)
doc = pdDocOpen(filename)
@assert (npage = pdDocGetPageCount(doc)) == 5
try
Expand All @@ -666,7 +661,7 @@ end
end
end
end
@test files_equal(result, template_file)
@test files_equal(result, template)
finally
pdDocClose(doc)
end
Expand Down

0 comments on commit 0dd1cda

Please sign in to comment.