From 623d005ca0b53f4861b12e5a2d3d61a6853ba3d7 Mon Sep 17 00:00:00 2001 From: Hanusz Leszek Date: Mon, 24 May 2021 18:18:26 +0200 Subject: [PATCH] Bump graphql-core version to 3.1.5 --- setup.py | 2 +- tests/starwars/test_dsl.py | 28 ++-------------------------- 2 files changed, 3 insertions(+), 27 deletions(-) diff --git a/setup.py b/setup.py index 496e7f3f..e0ca29f6 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages install_requires = [ - "graphql-core>=3.1.4,<3.2", + "graphql-core>=3.1.5,<3.2", "yarl>=1.6,<2.0", ] diff --git a/tests/starwars/test_dsl.py b/tests/starwars/test_dsl.py index b105cfa3..95a92989 100644 --- a/tests/starwars/test_dsl.py +++ b/tests/starwars/test_dsl.py @@ -264,32 +264,9 @@ def test_multiple_operations(ds): ), ) - """ - From graphql-core version 3.1.5, print_ast() break arguments over multiple lines - Accepting both cases here - """ - assert ( - ( - print_ast(query) - == """query GetHeroName { - hero { - name - } -} - -mutation CreateReviewMutation { - createReview(episode: JEDI, review: {stars: 5, \ -commentary: "This is a great movie!"}) { - stars - commentary - } -} -""" - ) - or ( - print_ast(query) - == """query GetHeroName { + print_ast(query) + == """query GetHeroName { hero { name } @@ -305,7 +282,6 @@ def test_multiple_operations(ds): } } """ - ) )