diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-09 18:13:59 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-09 18:13:59 +0100 |
| commit | 1cd822b825145d921d678c27b0600c78e576826b (patch) | |
| tree | 30ca0c9079eb497f3c94ddbd79f7d0cda07411a9 /tests | |
| parent | 4601ce03a1b41158f94e1e79edacf8540a89d15f (diff) | |
| download | deck-it-1cd822b825145d921d678c27b0600c78e576826b.tar.gz deck-it-1cd822b825145d921d678c27b0600c78e576826b.zip | |
feat: virtual monitor setup
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_display.py | 25 |
1 files changed, 25 insertions, 0 deletions
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() |
