test(search): Adopt test do use same serializer as view

This commit is contained in:
Georg Krause 2022-10-13 11:46:17 +02:00
commit e8b7da9744
No known key found for this signature in database
GPG key ID: 2970D504B2183D22
2 changed files with 9 additions and 7 deletions

View file

@ -838,7 +838,7 @@ class Search(views.APIView):
if "in tsquery:" in str(e):
return Response(
{"detail": "Invalid query"}, status=400
) # TODO This might be better a 500?
)
else:
raise