mirror of
https://github.com/ralsina/xrandroll.git
synced 2025-06-26 14:21:59 -03:00
Some more tests
This commit is contained in:
8
tests/test_xrandr.py
Normal file
8
tests/test_xrandr.py
Normal file
@ -0,0 +1,8 @@
|
||||
from xrandroll.xrandr import parse_data
|
||||
|
||||
|
||||
def test_parse_data(test_data):
|
||||
data = test_data.read("sample_1.txt", deserialize=False).splitlines()
|
||||
monitors = parse_data(data)
|
||||
assert len(monitors) == 2
|
||||
assert [m.output for m in monitors] == ["eDP", "HDMI-A-0"]
|
Reference in New Issue
Block a user