Skip to content

Commit

Permalink
tests: restore an image with circleCrop set to True
Browse files Browse the repository at this point in the history
Accidentally set nothing to use circleCrop when committing 68f5d34
  • Loading branch information
DatGuy1 committed Aug 14, 2023
1 parent 2d71319 commit 4b39227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_toasts.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,12 @@ def test_image_toast(example_image_path):
from src.windows_toasts import ToastDisplayImage, ToastImage, ToastImagePosition

toastImage = ToastImage(example_image_path)
toastDP = ToastDisplayImage(toastImage, altText="Windows logo", position=ToastImagePosition.Hero)
toastDP = ToastDisplayImage(toastImage, altText="Python logo", position=ToastImagePosition.Hero)
newToast = Toast(images=(toastDP,))

newToast.text_fields = ["Hello, World!", "Foo", "Bar"]

newToast.AddImage(ToastDisplayImage.fromPath(str(example_image_path), circleCrop=False))
newToast.AddImage(ToastDisplayImage.fromPath(str(example_image_path), circleCrop=True))

InteractableWindowsToaster("Python").show_toast(newToast)

Expand Down

0 comments on commit 4b39227

Please sign in to comment.