add notice to failing tests

This commit is contained in:
Aryan Iyappan 2021-08-19 10:59:58 +05:30
parent 4e32dac251
commit b4be4a686b

View File

@ -175,6 +175,11 @@ class TestUnforgivingExecutionContext:
],
)
def test_unexpected_error(self, field, exception, schema):
# FIXME: tests are failing currently because no exception
# is being raised below. Instead, the errors are being propagated
# to the `errors` array of the response. If this is intended
# behaviour, we need to check if the error exists in the `errors`
# array rather than checking if an exception is raised.
with raises(exception):
# no result, but the exception should be propagated
schema.execute(