Files
chandra/tests/conftest.py
2025-10-20 15:11:12 -04:00

11 lines
291 B
Python

import pytest
from PIL import Image, ImageDraw
@pytest.fixture(scope="session")
def simple_text_image() -> Image.Image:
image = Image.new("RGB", (800, 600), "white")
draw = ImageDraw.Draw(image)
draw.text((50, 50), "Hello, World!", fill="black", font_size=32)
return image