Skip to content

Commit

Permalink
poetry really kills me.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Mar 16, 2023
1 parent 509f625 commit 1c068a9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/units/markup/test_parser_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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

0 comments on commit 1c068a9

Please sign in to comment.