Skip to content

Commit cb81547

Browse files
Simplify graphql.py unit tests
Check only for a selection of elements, instead of full queries. It technically can miss new issues, but the old way was a mess to maintain.
1 parent 3497ce5 commit cb81547

2 files changed

Lines changed: 96 additions & 385 deletions

File tree

src/simplejustwatchapi/graphql.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -307,14 +307,10 @@
307307
"""
308308

309309
_GRAPHQL_COUNTRY_OFFERS_ENTRY = """
310-
{country_code}: offers(
311-
country: {country_code},
312-
platform: WEB,
313-
filter: $filter
314-
) {{
315-
...TitleOffer
316-
__typename
317-
}}
310+
{country_code}: offers(country: {country_code}, platform: WEB, filter: $filter) {{
311+
...TitleOffer
312+
__typename
313+
}}
318314
"""
319315

320316
GRAPHQL_SEARCH_QUERY = (

0 commit comments

Comments
 (0)