(self)
| 23 | |
| 24 | @functools.wraps(f) |
| 25 | def test_function(self): |
| 26 | for example_args, example_kwargs in examples: |
| 27 | if len(example_args) < 2: |
| 28 | subtest_args = example_args |
| 29 | else: |
| 30 | # subTest takes up to one positional argument. |
| 31 | # When there are more, display them as a tuple |
| 32 | subtest_args = [example_args] |
| 33 | with self.subTest(*subtest_args, **example_kwargs): |
| 34 | f(self, *example_args, **example_kwargs) |
| 35 | |
| 36 | else: |
| 37 | # If we have found no examples, we must skip the test. If @example |
no test coverage detected
searching dependent graphs…