From 1c068a9187bbe24671b8e642ba38501a9341764a Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Thu, 16 Mar 2023 07:41:35 +0100 Subject: [PATCH] poetry really kills me. --- tests/units/markup/test_parser_impl.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/units/markup/test_parser_impl.py b/tests/units/markup/test_parser_impl.py index ed44e1c9..ec47b09c 100644 --- a/tests/units/markup/test_parser_impl.py +++ b/tests/units/markup/test_parser_impl.py @@ -25,16 +25,16 @@ @pytest.mark.parametrize( - 'text, index, parameter_count, expected_index, expected_result, expected_error', + 'text, index, parameter_count, expected_result, expected_index, expected_error', ESCAPED_TESTS, ) def test_parse_parameters_escaped(text: str, index: int, parameter_count: int, - expected_index: int, expected_result: t.List[str], + expected_result: t.List[str], expected_index: int, expected_error: t.Optional[str]) -> None: - end_index, result, error = parse_parameters_escaped(text, index, parameter_count) - print(end_index, result, error) - assert index == expected_index + result, end_index, error = parse_parameters_escaped(text, index, parameter_count) + print(result, end_index, error) assert result == expected_result + assert end_index == expected_index assert error == expected_error @@ -52,14 +52,14 @@ def test_parse_parameters_escaped(text: str, index: int, parameter_count: int, @pytest.mark.parametrize( - 'text, index, parameter_count, expected_index, expected_result, expected_error', + 'text, index, parameter_count, expected_result, expected_index, expected_error', UNESCAPED_TESTS, ) def test_parse_parameters_unescaped(text: str, index: int, parameter_count: int, - expected_index: int, expected_result: t.List[str], + expected_result: t.List[str], expected_index: int, expected_error: t.Optional[str]) -> None: - end_index, result, error = parse_parameters_unescaped(text, index, parameter_count) - print(end_index, result, error) - assert index == expected_index + result, end_index, error = parse_parameters_unescaped(text, index, parameter_count) + print(result, end_index, error) assert result == expected_result + assert end_index == expected_index assert error == expected_error