From e57651d7c6d957001f3826cb4a5f9787c105fda2 Mon Sep 17 00:00:00 2001 From: "Stephanie J. Spielman" Date: Thu, 2 Apr 2026 11:09:49 -0400 Subject: [PATCH 1/2] need separate test file to not test same one twice --- tests/testthat/test-sce_to_anndata.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/testthat/test-sce_to_anndata.R b/tests/testthat/test-sce_to_anndata.R index 502ab0a7..121687ed 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 + no_verbose_anndata_file }) }) From d5e6fce6a84326199611cdfa892bd0b31ede1bd1 Mon Sep 17 00:00:00 2001 From: "Stephanie J. Spielman" Date: Thu, 2 Apr 2026 12:34:50 -0400 Subject: [PATCH 2/2] use the new file i added actually --- tests/testthat/test-sce_to_anndata.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test-sce_to_anndata.R b/tests/testthat/test-sce_to_anndata.R index 121687ed..9092ad00 100644 --- a/tests/testthat/test-sce_to_anndata.R +++ b/tests/testthat/test-sce_to_anndata.R @@ -96,7 +96,7 @@ 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) + sce_to_anndata(sce, no_verbose_anndata_file, verbose = FALSE) no_verbose_anndata_file }) })