Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
funkwhale
funkwhale
Commits
856c48f5
Verified
Commit
856c48f5
authored
Dec 18, 2019
by
Eliot Berriot
Browse files
See
#994
: Fixed failing test
parent
306cb262
Pipeline
#8499
passed with stages
in 4 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
api/tests/music/test_views.py
View file @
856c48f5
...
...
@@ -1222,13 +1222,13 @@ def test_search_get(use_fts, settings, logged_in_api_client, factories):
def
test_search_get_fts_advanced
(
settings
,
logged_in_api_client
,
factories
):
settings
.
USE_FULL_TEXT_SEARCH
=
True
artist1
=
factories
[
"music.Artist"
](
name
=
"Foo Bighters"
)
artist2
=
factories
[
"music.Artist"
](
name
=
"Bar Fighter
s
"
)
artist2
=
factories
[
"music.Artist"
](
name
=
"Bar Fighter"
)
factories
[
"music.Artist"
]()
url
=
reverse
(
"api:v1:search"
)
expected
=
{
"artists"
:
serializers
.
ArtistWithAlbumsSerializer
(
[
artist
1
,
artist
2
],
many
=
True
[
artist
2
,
artist
1
],
many
=
True
).
data
,
"albums"
:
[],
"tracks"
:
[],
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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