def test_serialization_of_incorrect_datetime_string(value):
    """Test GraphQLError is raised for incorrect datetime.
    The error should exclude "original_error".
    """
    result = execute_mutation(value)
    assert result.errors
    assert isinstance(result.errors[0], GraphQLError)
Test GraphQLError is raised for incorrect datetime.
    The error should exclude "original_error".
    
tests/schema/types/test_datetime.py