E2e workflow (#20)
Tests / test_and_lint (push) Successful in 34s

Reviewed-on: #20
Co-authored-by: Mathias Scheider <mathias2784@web.de>
This commit was merged in pull request #20.
This commit is contained in:
2026-10-18 07:24:49 +00:00
committed by mathias2784
parent ff588f899e
commit ad7dbfdd11
11 changed files with 775 additions and 101 deletions
+9
View File
@@ -48,6 +48,15 @@ def test_load_photo():
assert isinstance(photo.image, Image.Image)
def test_photo_context_manager_closes_image(tmp_path):
path = _make_image_file(tmp_path, "RGB")
with Photo(path) as photo:
image = photo.image
assert image.fp is not None
assert image.fp is None
def test_resize_method_exists():
"""Test that resize method exists and returns a Photo instance"""
photo = Photo(PATHS_DNG_EXAMPLES[0])