Skip to content
Merged
2 changes: 1 addition & 1 deletion digital_image_processing/test_digital_image_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_nearest_neighbour(


def test_local_binary_pattern():
file_path = "digital_image_processing/image_data/lena.jpg"
file_path = "digital_image_processing/image_data/lena_small.jpg"
Copy link
Member

@cclauss cclauss Oct 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables

Suggested change
file_path = "digital_image_processing/image_data/lena_small.jpg"
from os import getenv # Speed up our Continuous Integration tests
file_name = "lena_small.jpg" if getenv("CI") else "lena.jpg"
file_path = f"digital_image_processing/image_data/{file_name}.jpg"


# Reading the image and converting it to grayscale.
image = imread(file_path, 0)
Expand Down