diff --git a/tests/testthat/test-sce_to_anndata.R b/tests/testthat/test-sce_to_anndata.R index 502ab0a7..9092ad00 100644 --- a/tests/testthat/test-sce_to_anndata.R +++ b/tests/testthat/test-sce_to_anndata.R @@ -93,10 +93,11 @@ test_that("Conversion of SCE to AnnData works as expected", { }) test_that("Conversion of SCE to AnnData works with additional arguments", { + no_verbose_anndata_file <- file.path(tempdir, "no_verbose_anndata.h5") # test that the H5 file is created with additional options expect_snapshot_file({ - sce_to_anndata(sce, anndata_file, verbose = FALSE) - anndata_file + sce_to_anndata(sce, no_verbose_anndata_file, verbose = FALSE) + no_verbose_anndata_file }) })