From 1cd822b825145d921d678c27b0600c78e576826b Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 9 Nov 2026 18:13:59 +0100 Subject: feat: virtual monitor setup --- tests/test_display.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/test_display.py (limited to 'tests') diff --git a/tests/test_display.py b/tests/test_display.py new file mode 100644 index 0000000..b5d5b11 --- /dev/null +++ b/tests/test_display.py @@ -0,0 +1,25 @@ +import sys +from pathlib import Path + +sys.path.insert(0, str(Path(__file__).resolve().parent.parent)) + +import unittest + +import deckit.display as display + + +class Resolution(unittest.TestCase): + def test_reads_adb(self): + self.assertEqual( + display.tablet_resolution({"display": {}}, adb=lambda: "Physical size: 1920x1200"), + "1920x1200") + + def test_config_override(self): + self.assertEqual( + display.tablet_resolution({"display": {"resolution": "2560x1600"}}, + adb=lambda: "1920x1200"), + "2560x1600") + + +if __name__ == "__main__": + unittest.main() -- cgit v1.2.3