Oh well, in 8dae5747ba9b64b8c78794cffa52221b48ef428d I completely missed the fact the tests are already working via pytest, since I've never used it before, and blindly converted them to unittest instead. This realization came to me thanks to https://github.com/systemd/mkosi/pull/882#issuecomment-1016595462 and I agree with @keszybz that the code is much more readable with pytest (and drops a lot of boilerplate). So let's revert the change back.
Oh well, in 8dae5747ba9b64b8c78794cffa52221b48ef428d I completely missed the fact the tests are already working via
pytest
, since I've never used it before, and blindly converted them tounittest
instead. This realization came to me thanks to https://github.com/systemd/mkosi/pull/882#issuecomment-1016595462 and I agree with @keszybz that the code is much more readable withpytest
(and drops a lot of boilerplate). So let's revert the change back.