Skip to content

Commit c9661d8

Browse files
Update unit tests for requests with new offer icon format
1 parent b1d3881 commit c9661d8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/simplejustwatchapi/test_request.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
$country: Country!,
99
$language: Language!,
1010
$first: Int!,
11-
$format: ImageFormat,
11+
$formatPoster: ImageFormat,
12+
$formatOfferIcon: ImageFormat,
1213
$profile: PosterProfile,
1314
$backdropProfile: BackdropProfile,
1415
$filter: OfferFilter!,
@@ -46,8 +47,8 @@
4647
imdbId
4748
__typename
4849
}
49-
posterUrl(profile: $profile, format: $format)
50-
backdrops(profile: $backdropProfile, format: $format) {
50+
posterUrl(profile: $profile, format: $formatPoster)
51+
backdrops(profile: $backdropProfile, format: $formatPoster) {
5152
backdropUrl
5253
__typename
5354
}
@@ -65,7 +66,7 @@
6566
packageId
6667
clearName
6768
technicalName
68-
icon(profile: S100)
69+
icon(profile: S100, format: $formatOfferIcon)
6970
__typename
7071
}
7172
id
@@ -95,7 +96,8 @@ def test_prepare_search_request(
9596
"searchTitlesFilter": {"searchQuery": title},
9697
"language": language,
9798
"country": country.upper(),
98-
"format": "JPG",
99+
"formatPoster": "JPG",
100+
"formatOfferIcon": "PNG",
99101
"profile": "S718",
100102
"backdropProfile": "S1920",
101103
"filter": {"bestOnly": best_only},

0 commit comments

Comments
 (0)