Fix typo in library.to_ref test name

main
Erin 2021-08-12 01:00:24 -07:00
parent c1461b2e27
commit fefcdf3134
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ def test_parse_uri(uri, expected):
@pytest.mark.parametrize("type", ["track", "album", "artist"])
def test_parse_uri(type):
def test_to_ref(type):
obj = getattr(models, type.capitalize())(uri="hello:world", name="Hello")
expected = getattr(models.Ref, type)(uri=obj.uri, name=obj.name)
assert mopidy_funkwhale.library.to_ref(obj) == expected