libei/test
Peter Hutterer 7115e9c4c8 test: rework the oeffis dbus tests to be pytest-compatible
DBusMock is unittest based and the documentation points users to that
approach. That approach is limiting however because we can't use all
pytest features (see [1]). Luckily, the parent class in dbusmock doesn't
really do much so we can emulate the functionality ourselves - all we
need to do is call the same setUp/tearDowns and be done with it.

This means we can move the dbus-monitor and mainloop handling into
fixtures too which makes the code a fair bit nicer to read.

[1] https://docs.pytest.org/en/7.1.x/how-to/unittest.html#pytest-features-in-unittest-testcase-subclasses
2023-08-30 09:46:36 +10:00
..
templates test: drop a bunch of unused imports 2023-02-15 08:20:01 +10:00
buildtest.c Purge libreis from the repo 2023-02-09 11:48:28 +10:00
buildtest.cc Add C++ header guards 2020-09-29 17:30:49 +10:00
conftest.py test: run pytest with xdist where available 2023-03-03 11:27:01 +10:00
eierpecken.c test: don't over-ref the button/scroll devices 2023-06-07 23:08:16 +00:00
eierpecken.h eis: change the API to match the protocol interfaces closer 2023-05-05 14:04:17 +10:00
eiproto.py.tmpl ei-scanner: expose version_arg and version_arg_for 2023-05-26 16:56:13 +10:00
meson.build test: add some tests for the ei-scanner itself 2023-05-22 10:54:28 +10:00
test-ei-device.c Add a mapping_id to the regions 2023-08-30 09:18:26 +10:00
test-ei-seat.c test: switch to use ei_seat_bind_capabilities() 2023-05-10 12:21:40 +10:00
test-ei.c test: switch to use ei_seat_bind_capabilities() 2023-05-10 12:21:40 +10:00
test-eis.c test: add tests for the eis region getters 2023-06-06 19:41:54 +10:00
test-main.c Remove empty trailing newlines from all files 2023-03-13 08:52:08 +10:00
test_oeffis.py test: rework the oeffis dbus tests to be pytest-compatible 2023-08-30 09:46:36 +10:00
test_protocol.py test: ensure all returned interface versions are 1 2023-06-07 23:08:16 +00:00
test_scanner.py ei-scanner: expose version_arg and version_arg_for 2023-05-26 16:56:13 +10:00
unit-tests.c Add SPDX identifiers to all source files 2022-03-03 00:27:36 +00:00