Skip to content

Commit b53843b

Browse files
Fix unit tests after fragments rework
1 parent 7e6aeae commit b53843b

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

test/simplejustwatchapi/test_request.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -160,19 +160,13 @@
160160
}
161161
__typename
162162
}
163-
"""
164163
165-
GRAPHQL_EPISODE_FRAGMENT = """
166164
fragment EpisodeDetails on Episode {
167165
id
168166
objectId
169167
objectType
170168
content(country: $country, language: $language) {
171-
title
172-
originalReleaseYear
173-
originalReleaseDate
174-
runtime
175-
shortDescription
169+
...BasicContentDetails
176170
episodeNumber
177171
seasonNumber
178172
__typename
@@ -185,13 +179,17 @@
185179
"""
186180

187181
GRAPHQL_CONTENT_FRAGMENT = """
188-
fragment ContentDetails on MovieOrShowOrSeasonContent {
182+
fragment BasicContentDetails on MovieOrShowOrSeasonOrEpisodeContent {
189183
title
190-
fullPath
191184
originalReleaseYear
192185
originalReleaseDate
193186
runtime
194187
shortDescription
188+
}
189+
190+
fragment ContentDetails on MovieOrShowOrSeasonContent {
191+
...BasicContentDetails
192+
fullPath
195193
genres {
196194
shortName
197195
__typename
@@ -336,7 +334,6 @@ def test_prepare_details_request(node_id: str, country: str, language: str, best
336334
GRAPHQL_DETAILS_QUERY
337335
+ GRAPHQL_DETAILS_FRAGMENT
338336
+ GRAPHQL_FULL_SHOW_FRAGMENT
339-
+ GRAPHQL_EPISODE_FRAGMENT
340337
+ GRAPHQL_CONTENT_FRAGMENT
341338
+ GRAPHQL_OFFER_FRAGMENT
342339
),

0 commit comments

Comments
 (0)