Skip to content

Commit

Permalink
Don't test for the exact message in jupytext(..., quiet = FALSE)
Browse files Browse the repository at this point in the history
Avoiding headaches on Windows...
  • Loading branch information
milanmlft committed Jun 23, 2023
1 parent c416987 commit 7b25daa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/testthat/test-jupytext.R
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
test_that("Converting from ipynb to Rmd works", {
ipynb_file <- local_fixture("toy.ipynb")

res <- jupytext(input = ipynb_file, to = "Rmd", quiet = TRUE)
expect_message(
res <- jupytext(input = ipynb_file, to = "Rmd", quiet = FALSE)
)

expect_true(file.exists(res))
})

test_that("Converting from R Markdown to ipynb works", {
rmd_file <- local_fixture("toy2.Rmd")

expect_message(
res <- jupytext(input = rmd_file, to = "ipynb", quiet = FALSE),
paste("Converting", rmd_file, "to", .with_ext(rmd_file, "ipynb"))
)
res <- jupytext(input = rmd_file, to = "ipynb", quiet = TRUE)
expect_true(file.exists(res))

res <- read_ipynb(res)
Expand Down

0 comments on commit 7b25daa

Please sign in to comment.