MCPcopy Create free account
hub / github.com/e2b-dev/desktop / images_are_equal

Function images_are_equal

packages/python-sdk/tests/test_controls.py:13–19  ·  view source on GitHub ↗
(img1, img2)

Source from the content-addressed store, hash-verified

11
12
13def 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
22def test_right_click(sandbox: Sandbox):

Callers 1

test_right_clickFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected