Working on making modes nicer

This commit is contained in:
2022-06-08 10:27:34 -03:00
parent cb6d3932cd
commit afc6067d2b
5 changed files with 25 additions and 13 deletions

View File

@ -20,6 +20,8 @@ def test_parse_modes(test_data):
data = test_data.read("monitor_1.txt", deserialize=False).splitlines()
m = Monitor(data)
assert len(m.modes) == 9
assert "0x56" in m.modes
assert str(m.modes["0x56"]) == "1920x1080 (0x56)"
assert m.enabled
assert m.primary
assert m.orientation == "normal"