Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]

Expand Down
28 changes: 2 additions & 26 deletions tests/starwars/test_dsl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -305,7 +282,6 @@ def test_multiple_operations(ds):
}
}
"""
)
)


Expand Down