Skip to content

Update enum tests#163

Merged
syrusakbary merged 6 commits intographql-python:masterfrom
jkimbo:update-enum-tests
Jun 5, 2018
Merged

Update enum tests#163
syrusakbary merged 6 commits intographql-python:masterfrom
jkimbo:update-enum-tests

Conversation

@jkimbo
Copy link
Copy Markdown
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.

Comment thread graphql/type/definition.py Outdated

self.values = define_enum_values(self, values)

def getValues(self):
Copy link
Copy Markdown
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)

Comment thread graphql/type/definition.py Outdated
def getValues(self):
return self.values

def getValue(self, name):
Copy link
Copy Markdown
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
Copy Markdown
Member

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

@jkimbo
Copy link
Copy Markdown
Member Author

jkimbo commented Mar 17, 2018

@syrusakbary done!

@jkimbo
Copy link
Copy Markdown
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