[e5f1db]: / tests / plot / test_catplot.py

Download this file

17 lines (11 with data), 356 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
from pathlib import Path
import ehrapy as ep
CURRENT_DIR = Path(__file__).parent
_TEST_IMAGE_PATH = f"{CURRENT_DIR}/_images"
def test_catplot_vanilla(adata_mini, check_same_image):
fig = ep.pl.catplot(adata_mini, jitter=False)
check_same_image(
fig=fig,
base_path=f"{_TEST_IMAGE_PATH}/catplot_vanilla",
tol=2e-1,
)