def test_query_after_error():
    """Verify if the error raised on a non-existing before hash
    raises the correct error.
    """
    index = to_base64("Fake", 9292292)
    result = schema.execute_sync(
        before_after_test_query,
        variable_values={"after": index},
    )

    assert result.errors is not None
    assert "Argument 'after' contains a non-existing value" in str(result.errors)
Verify if the error raised on a non-existing before hash
    raises the correct error.
    
tests/relay/test_fields.py