<commit_before><commit_msg>Add flip tests module<commit_after>import pytest
import cv2
from plantcv.plantcv import flip


def test_flip(test_data):
    # Read in test data
    img = cv2.imread(test_data.small_rgb_img)
    flipped_img = flip(img=img, direction="horizontal")
    assert img.shape == flipped_img.shape


def test_flip_grayscale(test_data):
    # Read in test data
    gray_img = cv2.imread(test_data.small_gray_img, -1)
    flipped_img = flip(img=gray_img, direction="vertical")
    assert gray_img.shape == flipped_img.shape


def test_flip_bad_input(test_data):
    img = cv2.imread(test_data.small_rgb_img)
    with pytest.raises(RuntimeError):
        _ = flip(img=img, direction="vert")
{'fraction_non_alphanumeric': 0.10070921985815603, 'fraction_numerical': 0.0070921985815602835, 'mean_word_length': 4.603174603174603, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7527749', 'n_tokens_mistral': 252, 'n_tokens_neox': 246, 'n_words': 48}