Update test_file_gif.py

Changed to use a test image already in Images folder
This commit is contained in:
Ray Gardner 2022-05-14 11:57:41 -06:00 committed by GitHub
parent 416de882e4
commit 6257e788ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -815,7 +815,7 @@ def test_zero_comment_subblocks():
def test_write_comment(tmp_path):
out = str(tmp_path / "temp.gif")
with Image.open("Tests/images/multiple_comments.gif") as im:
with Image.open("Tests/images/dispose_prev.gif") as im:
im.save(out, save_all=True, comment="Test")
with Image.open(out) as reread:
# Comments written should appear only in first frame
@ -831,7 +831,7 @@ def test_write_comment(tmp_path):
def test_write_no_comment(tmp_path):
out = str(tmp_path / "temp.gif")
with Image.open("Tests/images/multiple_comments.gif") as im:
with Image.open("Tests/images/dispose_prev.gif") as im:
# Empty comment="" arg should suppress all comments
im.save(out, save_all=True, comment="")
with Image.open(out) as reread: