@@ -0,0 +1,1110 @@
+import pytest%0Aimport cv2%0Afrom plantcv.plantcv import analyze_color, outputs%0A%0A%0A@pytest.mark.parametrize(%22colorspace%22, %5B%22all%22, %22lab%22, %22hsv%22, %22rgb%22%5D)%0Adef test_analyze_color(colorspace, test_data):%0A    # Clear previous outputs%0A    outputs.clear()%0A    # Read in test data%0A    img = cv2.imread(test_data.small_rgb_img)%0A    mask = cv2.imread(test_data.small_bin_img, -1)%0A    _ = analyze_color(rgb_img=img, mask=mask, colorspaces=colorspace)%0A    assert outputs.observations%5B'default'%5D%5B'hue_median'%5D%5B'value'%5D == 80.0%0A%0A%0Adef test_analyze_color_bad_imgtype(test_data):%0A    img_binary = cv2.imread(test_data.small_bin_img, -1)%0A    mask = cv2.imread(test_data.small_bin_img, -1)%0A    with pytest.raises(RuntimeError):%0A        _ = analyze_color(rgb_img=img_binary, mask=mask, hist_plot_type=None)%0A%0A%0Adef test_analyze_color_bad_hist_type(test_data):%0A    img = cv2.imread(test_data.small_rgb_img)%0A    mask = cv2.imread(test_data.small_bin_img, -1)%0A    with pytest.raises(RuntimeError):%0A        # TODO: change hist_plot_type to colorspaces after deprecation%0A        _ = analyze_color(rgb_img=img, mask=mask, hist_plot_type='bgr')%0A

Add analyze_color tests module