Skip to content

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

Merged
merged 6 commits into from
Jun 5, 2018
Merged

Conversation

jkimbo
Copy link
Member

@jkimbo jkimbo commented Mar 10, 2018

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.

@@ -406,6 +406,12 @@ def __init__(self, name, values, description=None):

self.values = define_enum_values(self, values)

def getValues(self):
Copy link
Member

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)

def getValues(self):
return self.values

def getValue(self, name):
Copy link
Member

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

@syrusakbary
Copy link
Member

I will happily merge the PR once the functions are renamed to camel_case 👍

@jkimbo
Copy link
Member Author

jkimbo commented Mar 17, 2018

@syrusakbary done!

@jkimbo
Copy link
Member Author

jkimbo commented Apr 22, 2018

@syrusakbary this should be ready to merge now

@syrusakbary syrusakbary merged commit ad0e857 into graphql-python:master Jun 5, 2018
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