Re-enable tests that depend on SourceLocation

This commit is contained in:
Tomasz Kontusz 2019-09-26 19:02:14 +02:00
parent e3805effdc
commit 88c9c801ef
2 changed files with 3 additions and 12 deletions

View File

@ -92,9 +92,6 @@ def test_allows_get_with_operation_name(client):
}
@pytest.mark.xfail(
reason="SourceLocation serialization problem: https://github.com/graphql-python/graphql-core-next/issues/61"
)
def test_reports_validation_errors(client):
response = client.get(url_string(query="{ test, unknownOne, unknownTwo }"))
@ -449,9 +446,6 @@ def test_supports_pretty_printing_by_request(client):
)
@pytest.mark.xfail(
reason="SourceLocation serialization problem: https://github.com/graphql-python/graphql-core-next/issues/61"
)
def test_handles_field_errors_caught_by_graphql(client):
response = client.get(url_string(query="{thrower}"))
assert response.status_code == 200
@ -467,9 +461,6 @@ def test_handles_field_errors_caught_by_graphql(client):
}
@pytest.mark.xfail(
reason="SourceLocation serialization problem: https://github.com/graphql-python/graphql-core-next/issues/61"
)
def test_handles_syntax_errors_caught_by_graphql(client):
response = client.get(url_string(query="syntaxerror"))
assert response.status_code == 400
@ -477,8 +468,8 @@ def test_handles_syntax_errors_caught_by_graphql(client):
"errors": [
{
"locations": [{"column": 1, "line": 1}],
"message": "Syntax Error GraphQL (1:1) "
'Unexpected Name "syntaxerror"\n\n1: syntaxerror\n ^\n',
"message": "Syntax Error: Unexpected Name 'syntaxerror'",
"path": None,
}
]
}

View File

@ -55,7 +55,7 @@ setup(
install_requires=[
"six>=1.10.0",
"graphene>=3.0.dev,<4",
"graphql-core>=3.0.0b0,<4",
"graphql-core>=3.0.0b1,<4",
"Django>=1.11",
"promise>=2.1",
],