""" PyTest's for Digital Image Processing """ import digital_image_processing.edge_detection.canny as canny import digital_image_processing.filters.gaussian_filter as gg import digital_image_processing.filters.median_filter as med import digital_image_processing.filters.sobel_filter as sob import digital_image_processing.filters.convolve as conv import digital_image_processing.change_contrast as cc from cv2 import imread, cvtColor, COLOR_BGR2GRAY from numpy import array, uint8 from PIL import Image img = imread(r"digital_image_processing/image_data/lena.jpg") gray = cvtColor(img, COLOR_BGR2GRAY) # Test: change_contrast() def test_change_contrast(): with Image.open("digital_image_processing/image_data/lena.jpg") as img: # Work around assertion for response assert str(cc.change_contrast(img, 110)).startswith( "