mirror of
https://github.com/ralsina/xrandroll.git
synced 2025-06-26 14:21:59 -03:00
initial test
This commit is contained in:
10
tests/test_monitor.py
Normal file
10
tests/test_monitor.py
Normal file
@ -0,0 +1,10 @@
|
||||
from xrandroll.monitor import Monitor
|
||||
|
||||
|
||||
def test_parse_pos():
|
||||
data = [
|
||||
"eDP connected primary 1920x1080+0+1080 (0x56) normal (normal left inverted right x axis y axis) 309mm x 173mm"
|
||||
]
|
||||
m = Monitor(data)
|
||||
assert m.pos_x == 0
|
||||
assert m.pos_y == 1080
|
Reference in New Issue
Block a user