Skip to content
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

Fix django examples in README. #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

a-toms
Copy link

@a-toms a-toms commented Sep 10, 2021

  • Add missing imports
  • Replace missing undefined variable with simple bytes content
  • Add note to explain the default graphql endpoint (This tripped me up).

- Add missing imports
- Replace missing undefined variable with simple bytes content
- Add note to explain the default graphql endpoint (This tripped me up).
@a-toms a-toms changed the title Fix django documentation examples Fix django examples in README. Sep 10, 2021

class MutationTestCase(GraphQLFileUploadTestCase):
def test_some_mutation(self):
test_file = SimpleUploadedFile(name='test.txt', content=file_text.encode('utf-8'))
test_file = SimpleUploadedFile(name='test.txt', content=b'')
Copy link
Contributor

@jackton1 jackton1 Nov 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use a default content of 'test', Since the default is an empty byte string

def test_some_query(client_query):
test_file = SimpleUploadedFile(name='test.txt', content=file_text.encode('utf-8'))
test_file = SimpleUploadedFile(name='test.txt', content=b'')
Copy link
Contributor

@jackton1 jackton1 Nov 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

Copy link
Contributor

@jackton1 jackton1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also make the same change to the README.rst

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