Refactor helper functions into a utils package

This commit is contained in:
Hugo van Kemenade 2022-07-05 11:07:18 +03:00
parent ece37c4659
commit 620323eab0
3 changed files with 179 additions and 145 deletions

View file

@ -45,7 +45,7 @@ def test_cast_and_hash(obj) -> None:
],
)
def test__remove_invalid_xml_chars(test_input: str, expected: str) -> None:
assert pylast._remove_invalid_xml_chars(test_input) == expected
assert pylast.utils._remove_invalid_xml_chars(test_input) == expected
@pytest.mark.parametrize(