Add end-to-end tests for the daemon

Each test runs xidle-inhibit on a private dbus-daemon with fake lockers on PATH,
covering lock blocking, cookie handling, restoring after restarts and cleanup.
This commit is contained in:
Daniele Fucini
2026-11-08 14:51:13 +01:00
parent 1452059ca5
commit 02817be364
3 changed files with 453 additions and 1 deletions
+4 -1
View File
@@ -7,5 +7,8 @@ select = ["E", "F", "W", "I", "B", "UP"]
[tool.mypy]
# Scripts both map to __main__, so check xidle-dim separately: mypy xidle-dim
files = ["xidle-inhibit"]
files = ["xidle-inhibit", "tests"]
strict = true
[tool.pytest.ini_options]
testpaths = ["tests"]