From 07e0c220a9bfe47cdb3dea5c5082eaeb6527c5b4 Mon Sep 17 00:00:00 2001 From: Patrick Arminio Date: Wed, 11 Sep 2024 20:49:52 +0200 Subject: [PATCH] Remove check --- tests/schema/types/test_date.py | 3 --- tests/schema/types/test_datetime.py | 3 --- tests/schema/types/test_decimal.py | 3 --- tests/schema/types/test_time.py | 3 --- tests/schema/types/test_uuid.py | 3 --- 5 files changed, 15 deletions(-) diff --git a/tests/schema/types/test_date.py b/tests/schema/types/test_date.py index 160d52f330..67eee59890 100644 --- a/tests/schema/types/test_date.py +++ b/tests/schema/types/test_date.py @@ -5,7 +5,6 @@ import strawberry from strawberry.types.execution import ExecutionResult -from tests.conftest import IS_GQL_32 def test_serialization(): @@ -106,8 +105,6 @@ def test_serialization_of_incorrect_date_string(value): result = execute_mutation(value) assert result.errors assert isinstance(result.errors[0], GraphQLError) - if IS_GQL_32: - assert result.errors[0].original_error is None def test_serialization_error_message_for_incorrect_date_string(): diff --git a/tests/schema/types/test_datetime.py b/tests/schema/types/test_datetime.py index bba400fde8..a03819d08c 100644 --- a/tests/schema/types/test_datetime.py +++ b/tests/schema/types/test_datetime.py @@ -6,7 +6,6 @@ import strawberry from strawberry.types.execution import ExecutionResult -from tests.conftest import IS_GQL_32 @pytest.mark.parametrize( @@ -156,8 +155,6 @@ def test_serialization_of_incorrect_datetime_string(value): result = execute_mutation(value) assert result.errors assert isinstance(result.errors[0], GraphQLError) - if IS_GQL_32: - assert result.errors[0].original_error is None def test_serialization_error_message_for_incorrect_datetime_string(): diff --git a/tests/schema/types/test_decimal.py b/tests/schema/types/test_decimal.py index b13571835d..64a54bbee1 100644 --- a/tests/schema/types/test_decimal.py +++ b/tests/schema/types/test_decimal.py @@ -3,7 +3,6 @@ from graphql import GraphQLError import strawberry -from tests.conftest import IS_GQL_32 def test_decimal(): @@ -64,8 +63,6 @@ def decimal_input(self, decimal_input: Decimal) -> Decimal: assert result.errors assert isinstance(result.errors[0], GraphQLError) - if IS_GQL_32: - assert result.errors[0].original_error is None assert result.errors[0].message == ( "Variable '$value' got invalid value 'fail'; Value cannot represent a " 'Decimal: "fail".' diff --git a/tests/schema/types/test_time.py b/tests/schema/types/test_time.py index 97c27bec8c..2a45037335 100644 --- a/tests/schema/types/test_time.py +++ b/tests/schema/types/test_time.py @@ -5,7 +5,6 @@ import strawberry from strawberry.types.execution import ExecutionResult -from tests.conftest import IS_GQL_32 def test_serialization(): @@ -105,8 +104,6 @@ def test_serialization_of_incorrect_time_string(value): result = execute_mutation(value) assert result.errors assert isinstance(result.errors[0], GraphQLError) - if IS_GQL_32: - assert result.errors[0].original_error is None def test_serialization_error_message_for_incorrect_time_string(): diff --git a/tests/schema/types/test_uuid.py b/tests/schema/types/test_uuid.py index 38fa4daf24..87808b6487 100644 --- a/tests/schema/types/test_uuid.py +++ b/tests/schema/types/test_uuid.py @@ -3,7 +3,6 @@ from graphql import GraphQLError import strawberry -from tests.conftest import IS_GQL_32 def test_uuid(): @@ -64,8 +63,6 @@ def uuid_input(self, uuid_input: uuid.UUID) -> uuid.UUID: assert result.errors assert isinstance(result.errors[0], GraphQLError) - if IS_GQL_32: - assert result.errors[0].original_error is None assert result.errors[0].message == ( "Variable '$value' got invalid value 'fail'; Value cannot represent a " 'UUID: "fail". badly formed hexadecimal UUID string'