Skip to content

Commit

Permalink
Remove check
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick91 committed Sep 11, 2024
1 parent d9d91fe commit 07e0c22
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions tests/schema/types/test_date.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import strawberry
from strawberry.types.execution import ExecutionResult
from tests.conftest import IS_GQL_32


def test_serialization():
Expand Down Expand Up @@ -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():
Expand Down
3 changes: 0 additions & 3 deletions tests/schema/types/test_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import strawberry
from strawberry.types.execution import ExecutionResult
from tests.conftest import IS_GQL_32


@pytest.mark.parametrize(
Expand Down Expand Up @@ -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():
Expand Down
3 changes: 0 additions & 3 deletions tests/schema/types/test_decimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from graphql import GraphQLError

import strawberry
from tests.conftest import IS_GQL_32


def test_decimal():
Expand Down Expand Up @@ -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".'
Expand Down
3 changes: 0 additions & 3 deletions tests/schema/types/test_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import strawberry
from strawberry.types.execution import ExecutionResult
from tests.conftest import IS_GQL_32


def test_serialization():
Expand Down Expand Up @@ -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():
Expand Down
3 changes: 0 additions & 3 deletions tests/schema/types/test_uuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from graphql import GraphQLError

import strawberry
from tests.conftest import IS_GQL_32


def test_uuid():
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 07e0c22

Please sign in to comment.