Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
funkwhale
mopidy
Commits
fefcdf31
Commit
fefcdf31
authored
Aug 12, 2021
by
Erin
Browse files
Fix typo in library.to_ref test name
parent
c1461b2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_library.py
View file @
fefcdf31
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment