Blacked the code
This commit is contained in:
parent
b6fc0051fa
commit
62ca3bd736
279 changed files with 8890 additions and 9556 deletions
|
|
@ -1,12 +1,11 @@
|
|||
from funkwhale_api.activity import serializers
|
||||
from funkwhale_api.favorites.serializers import TrackFavoriteActivitySerializer
|
||||
from funkwhale_api.history.serializers import \
|
||||
ListeningActivitySerializer
|
||||
from funkwhale_api.history.serializers import ListeningActivitySerializer
|
||||
|
||||
|
||||
def test_autoserializer(factories):
|
||||
favorite = factories['favorites.TrackFavorite']()
|
||||
listening = factories['history.Listening']()
|
||||
favorite = factories["favorites.TrackFavorite"]()
|
||||
listening = factories["history.Listening"]()
|
||||
objects = [favorite, listening]
|
||||
serializer = serializers.AutoSerializer(objects, many=True)
|
||||
expected = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue