Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Pytest tests #17750
PR #17270 to make a better state restoration system didn't make it because it required PyTest tests for all tests that test state restoration which resulted in way more work than expected.
So this is an attempt to help tackle some of the work.
This converts our tests to use pytest assert instead of testcase self.assert*. The conversion is done using https://github.com/pytest-dev/unittest2pytest. Since it directly impacts the asserts, it was easy to test that there were no side effects.
If the code does not interact with devices: