Skip to content

let your agent control your phone

test(android): fake phone reports its screen size directly (#153)

shawn pana8997b07c8a8e
diff --git a/tests/test_android.py b/tests/test_android.py
index cf5376e..ee0a814 100644
--- a/tests/test_android.py
+++ b/tests/test_android.py
@@ -20,6 +20,9 @@ class Recorded(Android):
self._bounds = {"x": 0, "y": 0, "w": 720, "h": 1280, "id": "fake"}
self._resolved = True
+ def _screen_bounds(self):
+ return self._bounds
+
def _screen_require(self):
return self._bounds