Python Unittestenhancementhelp wanted
Repository metrics
- Stars
- (147 stars)
- PR merge metrics
- (PR metrics pending)
Description
TestSlide has a hacky support for TestCase.assert* methods. While this works, it prevents users from tweaking things such as maxDiff.
The proposed solution to fix this is:
- Drop the hacky
self._test_case. - Make usage of the
TestCase integration, perhaps by adding doingself.add_test_case()atContext.__init__, and assigning it toself.test_case. - Keep the
__getattr__logic, but forward it toself.test_case.
With that, users should be able to do self.test_case.maxDiff = new_value.