(img1, img2)
| 11 | |
| 12 | |
| 13 | def images_are_equal(img1, img2): |
| 14 | # Use ImageChops to find the difference |
| 15 | diff = ImageChops.difference(img1, img2) |
| 16 | # Check if there is any difference |
| 17 | return ( |
| 18 | diff.getbbox() is None |
| 19 | ) # Returns True if images are equal, False if different |
| 20 | |
| 21 | |
| 22 | def test_right_click(sandbox: Sandbox): |