-
Notifications
You must be signed in to change notification settings - Fork 180
Update enum tests #163
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
Update enum tests #163
Conversation
graphql/type/definition.py
Outdated
@@ -406,6 +406,12 @@ def __init__(self, name, values, description=None): | |||
|
|||
self.values = define_enum_values(self, values) | |||
|
|||
def getValues(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should name this get_values
(camel case)
graphql/type/definition.py
Outdated
def getValues(self): | ||
return self.values | ||
|
||
def getValue(self, name): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be get_value
I will happily merge the PR once the functions are renamed to |
@syrusakbary done! |
@syrusakbary this should be ready to merge now |
Update enum tests to bring them inline with graphql-js v0.13.1
I've not included the complex value tests since I'm not sure how it can be achieved in Python.