Files
my-botty-tools/botty_next/tests/test_capture.py

13 lines
325 B
Python

from botty_next.capture.window import WindowRegion
def test_window_region_converts_to_mss_monitor() -> None:
region = WindowRegion(left=10, top=20, width=640, height=480, title="Example")
assert region.as_mss_monitor() == {
"left": 10,
"top": 20,
"width": 640,
"height": 480,
}