Verified Commit 856c48f5 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

See #994: Fixed failing test

parent 306cb262
Pipeline #8499 passed with stages
in 4 minutes and 9 seconds
......@@ -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 Fighters")
artist2 = factories["music.Artist"](name="Bar Fighter")
factories["music.Artist"]()
url = reverse("api:v1:search")
expected = {
"artists": serializers.ArtistWithAlbumsSerializer(
[artist1, artist2], many=True
[artist2, artist1], many=True
).data,
"albums": [],
"tracks": [],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment