Skip to content

Commit 8f1f29c

Browse files
committed
Fix test_abs_values
1 parent 6910cf6 commit 8f1f29c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_uinput.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ def test_enable_events(c):
6666

6767
def test_abs_values(c):
6868
e = ecodes
69-
c["events"] = {
69+
c = {
7070
e.EV_KEY: [e.KEY_A, e.KEY_B],
71-
e.EV_ABS: [(e.ABS_X, (0, 255, 0, 0)), (e.ABS_Y, device.AbsInfo(0, 255, 5, 10, 0, 0))],
71+
e.EV_ABS: [(e.ABS_X, (0, 0, 255, 0, 0)), (e.ABS_Y, device.AbsInfo(0, 0, 255, 5, 10, 0))],
7272
}
7373

74-
with uinput.UInput(**c) as ui:
74+
with uinput.UInput(events=c) as ui:
7575
c = ui.capabilities()
7676
abs = device.AbsInfo(value=0, min=0, max=255, fuzz=0, flat=0, resolution=0)
7777
assert c[e.EV_ABS][0] == (0, abs)

0 commit comments

Comments
 (0)