import cv2
import numpy as np
from plantcv.plantcv import gaussian_blur


def test_gaussian_blur(test_data):
    # Read in test data
    img = cv2.imread(test_data.small_rgb_img)
    gaussian_img = gaussian_blur(img=img, ksize=(51, 51), sigma_x=0, sigma_y=None)
    assert np.average(img) != np.average(gaussian_img)


def test_gaussian_blur_grayscale(test_data):
    # Read in test data
    gray_img = cv2.imread(test_data.small_gray_img, -1)
    gaussian_img = gaussian_blur(img=gray_img, ksize=(51, 51), sigma_x=0, sigma_y=None)
    assert np.average(gray_img) != np.average(gaussian_img)

Add gaussian_blur tests module