test(input): cover the SDL 3 virtual-pad query path

This commit is contained in:
maxjivi05 committed 2026-11-30 11:56:23 -05:00
1 parent 72c8b8426d
commit e409b181c3
1 file changed
+6 -1
+6 -1
View File
@@ -670,7 +670,12 @@ class InputUdevPreloadTest(unittest.TestCase):
])
def test_no_device_call_on_a_pad_reaches_the_real_libudev(self):
self.assertEqual(self.run_program("every", args=DEVICE_FUNCTIONS), ["pad 1 real calls 0"])
for extra in ({}, {"SDL_JOYSTICK_DISABLE_UDEV": "1", "SDL_JOYSTICK_HIDAPI": "0"},
{"SDL_JOYSTICK_DISABLE_UDEV": "1", "SDL_JOYSTICK_HIDAPI": "0",
"FAKE_EVDEV_STEAM_VIRTUAL": "1"}):
with self.subTest(**extra):
self.assertEqual(self.run_program("every", args=DEVICE_FUNCTIONS, extra=extra),
["pad 1 real calls 0"])
def test_a_handle_keeps_its_strings_after_the_pad_goes_away(self):
self.assertEqual(self.run_program("stable", pads=self.pad_dir("stable", "event0")), [