Show mode frequency

This commit is contained in:
2022-06-08 12:46:51 -03:00
parent afc6067d2b
commit dce8545ed3
2 changed files with 4 additions and 2 deletions

View File

@ -21,7 +21,8 @@ def test_parse_modes(test_data):
m = Monitor(data)
assert len(m.modes) == 9
assert "0x56" in m.modes
assert str(m.modes["0x56"]) == "1920x1080 (0x56)"
assert str(m.modes["0x56"]) == "1920x1080 60Hz (0x56)"
assert m.modes["0x56"].frequency == 60.01
assert m.enabled
assert m.primary
assert m.orientation == "normal"