Skip to content

Commit

Permalink
Update test_plot_cpdb_heatmap.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zktuong committed Feb 14, 2024
1 parent 124df69 commit 57fad2d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_plot_cpdb_heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,13 @@ def test_plot_cpdb_heatmap_return(adata, pvals):
for d in dfs:
assert isinstance(dfs[d], pd.DataFrame)
assert dfs[d].shape[0] > 0


@patch("matplotlib.pyplot.show")
@pytest.mark.usefixtures("adata", "pvals")
def test_plot_cpdb_heatmap_celltypes(mock_show, adata, pvals):
g = plot_cpdb_heatmap(
pvals=pvals,
cell_types=["CD4 T cell", "CD8 T cell", "B cell"],
)
g

0 comments on commit 57fad2d

Please sign in to comment.