Skip to content

Conversation

@martinpitt
Copy link
Owner

Plus several yak shaving fixes.

Fixes #236

This is what systemd calls these days.
`systemctl suspend` and friends call this. Add a test case.
 - The Suspend() functionality moved from UPower to systemd-logind ages
   ago. Move the examples to that.

 - Make the examples actually work unmodified by addig a `busctl` call as a
   placeholder for what your tested program would do.

 - Move from tearDown() to addCleanup(), which is is the modern style.

 - Rewrite the pytest example to use the current API.

Fixes #236
This extracts the examples into temporary files and runs them through
pytest. Let's make sure that these don't break again in the future!
@martinpitt martinpitt merged commit 1a701a7 into main Jan 26, 2026
26 checks passed
@martinpitt martinpitt deleted the fixes branch January 26, 2026 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pytest fixture example doesn't work

2 participants