Skip to content

Commit 0af6d94

Browse files
committed
Add unit test
1 parent afdf9df commit 0af6d94

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/error/test_graphql_error.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,12 @@ def default_error_formatter_includes_extension_fields():
126126
"path": None,
127127
"extensions": {"foo": "bar"},
128128
}
129+
130+
def is_hashable():
131+
try:
132+
raise RuntimeError("original")
133+
except RuntimeError as e:
134+
original = e
135+
e = GraphQLError("msg", original_error=original)
136+
assert hash(e) == hash(original)
137+

0 commit comments

Comments
 (0)