zaufi / pytest-matcher

A pytest plugin to match test output against patterns stored in files
https://pytest-matcher.readthedocs.io
2 stars 1 forks source link

Make it possible to use `expected_out` in parameterized tests #4

Closed zaufi closed 9 months ago

zaufi commented 3 years ago
    @pytest.mark.wip
    @pytest.mark.parametrize(
        ('input_filename', 'max_line_length')
      , [
            ('short-text-test.txt', 80)
          , ('long-text-test.txt', 30)
        ]
      )
    def wrap_test(self, input_filename: str, max_line_length: int, expected_out):
        ...