Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Pickering <[email protected]>
  • Loading branch information
alexvpickering committed May 22, 2024
1 parent 9a1c83d commit 7ceedc4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pipeline-runner/tests/testthat/test-qc-7-embed_and_cluster.R
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,12 @@ test_that("format_cell_sets_object doesn't hardcore all keys as louvain (need fo
cell_sets <- rbind(cell_sets, more_cell_sets)

color_pool <- mock_color_pool(n_clusters)
algos <- c("louvain", "leiden")
algos <- c("louvain", "leiden", "other")

for (algo in algos) {
res <- format_cluster_cellsets(cell_sets, algo, color_pool)
expect_equal(res$key, algo)
expected <- ifelse(algo %in% c('louvain', 'leiden'), 'louvain', algo)
expect_equal(res$key, expected)
}
})

Expand Down

0 comments on commit 7ceedc4

Please sign in to comment.