Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Commit 86ef5a0

Browse files
committed
unit tests
1 parent 7b79e43 commit 86ef5a0

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tests/testthat/test-query.R

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,4 +229,28 @@ test_that("get_pseudobulk() syncs appropriate files", {
229229
expect_gt(1)
230230
})
231231

232+
test_that("get_pseudobulk() syncs appropriate fixed file", {
233+
temp <- tempfile()
234+
ids <- c(
235+
"b50b15f1-bf19-4775-ab89-02512ec941a6",
236+
"bffedc04-5ba1-46d4-885c-989a294bedd4",
237+
"cc3ff54f-7587-49ea-b197-1515b6d98c4c",
238+
"0af763e1-0e2f-4de6-9563-5abb0ad2b01e",
239+
"51f114ae-232a-4550-a910-934e175db814",
240+
"327927c7-c365-423c-9ebc-07acb09a0c1a",
241+
"3ae36927-c188-4511-88cc-572ee1edf906",
242+
"6ed2cdc2-dda8-4908-ad6c-cead9afee85e",
243+
"56e0359f-ee8d-4ba5-a51d-159a183643e5",
244+
"5c64f247-5b7c-4842-b290-65c722a65952"
245+
)
246+
meta <- get_metadata(cache_directory = temp) |> dplyr::filter(file_id %in% ids)
247+
248+
# The remote dataset should have many genes
249+
sme <- get_pseudobulk(meta, cache_directory = temp)
250+
sme |>
251+
row.names() |>
252+
length() |>
253+
expect_gt(1)
254+
})
255+
232256

0 commit comments

Comments
 (0)