mirror of
https://github.com/ralsina/xrandroll.git
synced 2025-06-26 14:21:59 -03:00
added tests
This commit is contained in:
@ -21,9 +21,11 @@ def test_parse_modes(test_data):
|
||||
m = Monitor(data)
|
||||
assert len(m.modes) == 9
|
||||
assert m.enabled
|
||||
assert m.primary
|
||||
|
||||
|
||||
def test_disabled_monitor(test_data):
|
||||
data = test_data.read("disabled_monitor.txt", deserialize=False).splitlines()
|
||||
m = Monitor(data)
|
||||
assert m.enabled is False
|
||||
assert m.primary is False
|
||||
|
Reference in New Issue
Block a user