import pytest
import os
from pathlib import Path
import skimage.io
import ncolor.ncolor as ncolor


def test_ncolor():
    masks_dir = Path(os.path.dirname(ncolor.__file__)).parent.absolute()
    masks = skimage.io.imread(os.path.join(masks_dir,'example.png'))
    ncolor_masks = ncolor.label(masks)