Skip to content

Adds __eq__ and test of it #1181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

spacether
Copy link

This PR adds the __eq__ method to the ObjectType class so instances of it can be compared
Tests of the new method has also been added.
Happy to add more tests my guess is that we may need to cover more use cases.

If merged, this will close out this issue

@spacether spacether force-pushed the feat_adds_eq_method branch from a222371 to c5fcb52 Compare April 13, 2020 01:34
@syrusakbary
Copy link
Member

We just merged #1157, which indirectly added support for __eq__ in Objects.

https://github.com/graphql-python/graphene/blob/master/graphene/types/tests/test_objecttype.py#L167-L173

Could test without the __eq__ method addition but without any change on the ObjectType logic itself? (just adding the test if seeing if that passes)

@spacether
Copy link
Author

This PR is no longer needed because #1157 added the eq method

@spacether spacether closed this Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants