From 7b25daa823d5505c628599dd61549544bf261294 Mon Sep 17 00:00:00 2001 From: Milan Malfait Date: Fri, 23 Jun 2023 14:20:46 +0100 Subject: [PATCH] Don't test for the exact message in `jupytext(..., quiet = FALSE)` Avoiding headaches on Windows... --- tests/testthat/test-jupytext.R | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/testthat/test-jupytext.R b/tests/testthat/test-jupytext.R index 2e623fd..7acd6c8 100644 --- a/tests/testthat/test-jupytext.R +++ b/tests/testthat/test-jupytext.R @@ -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)