Skip to content

Commit

Permalink
Add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-humu committed May 30, 2019
1 parent afdf9df commit 0af6d94
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/error/test_graphql_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,12 @@ def default_error_formatter_includes_extension_fields():
"path": None,
"extensions": {"foo": "bar"},
}

def is_hashable():
try:
raise RuntimeError("original")
except RuntimeError as e:
original = e
e = GraphQLError("msg", original_error=original)
assert hash(e) == hash(original)

0 comments on commit 0af6d94

Please sign in to comment.