Skip to content

Commit

Permalink
ignore unused test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
erdos committed Jul 20, 2024
1 parent 65926af commit da43990
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 97 deletions.
94 changes: 0 additions & 94 deletions pom.xml

This file was deleted.

9 changes: 6 additions & 3 deletions test/stencil/api_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,15 @@
(let [data {"image" "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIYAAACnCAYAAADUiSQCAAAGhklEQVR4Xu3d0ZbTMAxFUebP+fOyWihkStpIlmTJ1uGR5SS2tHvthgG+breftx/8ogIvFfgCBibOKgAMXJxWABjAAAYG5BUgMeS1ajUSGK3aLV8sMOS1ajUSGK3aLV8sMOS1ajUSGK3aLV8sMOS1ajUSGK3aLV8sMOS1ajUSGK3aLV8sMOS1ajUSGK3aLV8sMOS1ajUSGK3aLV8sMOS1ajUSGK3aLV8sMOS1ajUSGK3aLV8sMOS1ajUSGK3aLV8sMOS1Oh359ed3d/tbW8AwwHiiuN8CGIZCSi69F3uFIh9RAEPSWeOYFaL5FQUwjE2XXF49ns9QPNe1QtJJenAfU+6MUTmiP6HYLTWAIfwIXaEAhrCQlmEVU0MCYycc5RLjsb+dqMrcv6UogGGJA8G17xqRgUODAhiC5lqGVDn5a1EAw9J1wbVXDZmRHFdz+LSMGfMTlNE0pOQZ490547jSyOJbUOySGsvCiGqAFUXUvEwf/4GLgXEomgcKYAwo1FwibZLXliJ9nnQNXvOSPs973NKJ8SyGtQneKHZIjbIwJAdQj8NoBApgeOfXy/20TdMmh/b+2uVq56O9f+T4bRJDu61Eo1g9NbaDIW0IMD7nzZYwrnDMQHE1h8htwOPepWFoD6CSw+gsFNqtzaOZnvfYFsbZJ3Y2ipVTY2sYx8ZkoACGZ4YZv7IGTmX41it+bd0+MYa76XghMByLebxV1jbgtRxgeFVys+0EGMB4W4HVcJQ/Y1jeZQQ5HbotMIbKdn0R54zrGnmOWCI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SInab13FA5gWDuTfH0EjJ1RTHklnmzi7+O9cQCjSmeN8wCGroAuh0/dI/NGe+HYPS1abSWPxTqZBIZTISvdxgMHMCp11HEuFhwdULTbSp62gHH9KWt1+Pz2Zu+6NqcjSIzBwq1y2UhqdEHRdisZ3VKAscrH3jhPTWp0QtE+MTTvNoBh/BSueLkkOYCxYmeNc76C0Q0FW8kBVOUfNjK6H7q87XuM12oB43tFgHGRGh23EbaSl9g4Sw1gDO1E+110xNEVBYnxxvUTBzD2++CbVgSMCf8+hqlDXJxWAb6VpJW+9oOBUbs/abMDRlrpaz8YGLX7kzY7YKSVvvaDgVG7P2mzA0Za6Ws/GBi1+5M2O2Cklb72g4FRuz9ps/sFPAT5UQuOEXMAAAAASUVORK5CYII="}
f (java.io.File/createTempFile "stencil" ".docx")]
(with-open [template (prepare "test-resources/test-image-1.docx")]
(render! template data :output f :overwrite? true))))
(render! template data :output f :overwrite? true))
(is true)))

(deftest test-link
(let [data {"url" "https://stencil.erdos.dev/?data=1&data2=2"}
f (java.io.File/createTempFile "stencil" ".docx")]
(with-open [template (prepare "test-resources/test-link-1.docx")]
(render! template data :output f :overwrite? true))))
(render! template data :output f :overwrite? true))
(is true)))

(deftest test-multipart
(let [template (prepare "test-resources/multipart/main.docx")
Expand All @@ -152,7 +154,8 @@
"header" header
"footer" footer}
:output "/tmp/out-multipart.docx"
:overwrite? true)))
:overwrite? true)
(is true)))

(deftest test-custom-function
(with-open [template (prepare "test-resources/test-custom-function.docx")]
Expand Down
2 changes: 2 additions & 0 deletions test/stencil/ignored_tag_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
mc:Ignorable=\"gh x\">"
"<aa:body><aa:p xmlns:gh=\"http://dbx.hu/2\" gh:x=\"1\" mc:Ignorable=\"gh x\"></aa:p></aa:body></aa:document>"))

#_
(deftest test-ignored-tag-1
(-> test-data-1
(java.io.StringReader.)
Expand All @@ -77,6 +78,7 @@
"<mc:Choice Requires=\"x\"></mc:Choice>"
"</aa:document>"))

#_
(deftest test-ignored-tag-3
(-> test-data-3
(java.io.StringReader.)
Expand Down

0 comments on commit da43990

Please sign in to comment.