Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick91 committed Feb 28, 2022
1 parent 16a7b59 commit 1ed772f
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions tests/schema/test_scalars.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,22 +114,21 @@ def echo_json_nullable(data: Optional[JSON]) -> Optional[JSON]:

schema = strawberry.Schema(query=Query)

assert (
str(schema)
== dedent(
'''
"""
The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
"""
scalar JSON @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
expected_schema = dedent(
'''
"""
The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
"""
scalar JSON @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
type Query {
echoJson(data: JSON!): JSON!
echoJsonNullable(data: JSON): JSON
}
''' # noqa: E501
).strip()
)
type Query {
echoJson(data: JSON!): JSON!
echoJsonNullable(data: JSON): JSON
}
''' # noqa: E501
).strip()

assert str(schema) == expected_schema

result = schema.execute_sync(
"""
Expand Down

0 comments on commit 1ed772f

Please sign in to comment.