Skip to content

Commit 82ed8c6

Browse files
committed
Get visual tests running (hopefully) by using workaround for reticulate+kaleido issue
1 parent 9c0ff38 commit 82ed8c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/testthat/helper-vdiffr.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ message("Visual testing is ", if (!visual_testing) "not ", "enabled.")
44

55
# start up the orca image server
66
imageServer <- if (visual_testing) {
7+
# https://github.com/plotly/plotly.R/issues/2179
8+
reticulate::py_run_string("import sys")
79
kaleido()
810
} else {
911
list(transform = function(...) stop("Visual testing is disabled!"))

0 commit comments

Comments
 (0)