@@ -85,19 +85,21 @@ def check_song_json(self, json, expected_song):
8585 # tags
8686 expected_tags = expected_song .tags .all ()
8787 self .assertEqual (len (json ["tags" ]), len (expected_tags ))
88- for tag , expected_tag in zip (json ["tags" ], expected_tags ):
88+ for tag , expected_tag in zip (json ["tags" ], expected_tags , strict = False ):
8989 self .check_tag_json (tag , expected_tag )
9090
9191 # artists
9292 expected_artists = expected_song .artists .all ()
9393 self .assertEqual (len (json ["artists" ]), len (expected_artists ))
94- for artist , expected_artist in zip (json ["artists" ], expected_artists ):
94+ for artist , expected_artist in zip (
95+ json ["artists" ], expected_artists , strict = False
96+ ):
9597 self .check_artist_json (artist , expected_artist )
9698
9799 # works
98100 expected_works = expected_song .songworklink_set .all ()
99101 self .assertEqual (len (json ["works" ]), len (expected_works ))
100- for work , expected_work in zip (json ["works" ], expected_works ):
102+ for work , expected_work in zip (json ["works" ], expected_works , strict = False ):
101103 self .check_work_json (work ["work" ], expected_work .work )
102104 self .assertEqual (work ["link_type" ], expected_work .link_type )
103105 self .assertEqual (work ["link_type_number" ], expected_work .link_type_number )
@@ -125,7 +127,7 @@ def check_work_json(self, json, expected_work):
125127 expected_alt_titles = expected_work .alternative_titles .all ()
126128 self .assertEqual (len (json ["alternative_titles" ]), len (expected_alt_titles ))
127129 for alt_title , expected_alt_title in zip (
128- json ["alternative_titles" ], expected_alt_titles
130+ json ["alternative_titles" ], expected_alt_titles , strict = False
129131 ):
130132 self .assertEqual (alt_title ["title" ], expected_alt_title .title )
131133
0 commit comments