Apply decorator to all test methods in class.
(cls)
| 1688 | """ |
| 1689 | |
| 1690 | def all_test_methods_impl(cls): |
| 1691 | """Apply decorator to all test methods in class.""" |
| 1692 | for name in dir(cls): |
| 1693 | value = getattr(cls, name) |
| 1694 | if callable(value) and name.startswith( |
| 1695 | "test") and (name != "test_session"): |
| 1696 | setattr(cls, name, decorator(*args, **kwargs)(value)) |
| 1697 | return cls |
| 1698 | |
| 1699 | return all_test_methods_impl |
| 1700 |
nothing calls this directly
no test coverage detected