mirror of
https://github.com/ralsina/xrandroll.git
synced 2024-11-10 21:22:22 +00:00
14 lines
448 B
Python
14 lines
448 B
Python
from xrandroll.xrandr import parse_data
|
|
|
|
|
|
def test_parse_data(test_data):
|
|
data = test_data.read("sample_1.txt", deserialize=False).splitlines()
|
|
screen = parse_data(data)
|
|
assert len(screen.monitors) == 2
|
|
assert [m.output for m in screen.monitors.values()] == ["eDP", "HDMI-A-0"]
|
|
|
|
|
|
def test_parse_with_disconnected_monitors(test_data):
|
|
data = test_data.read("fisa_sample.txt", deserialize=False).splitlines()
|
|
parse_data(data)
|