-
Notifications
You must be signed in to change notification settings - Fork 50
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
base: master
Are you sure you want to change the base?
Conversation
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).
|
||
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'') |
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.
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'') |
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.
Same as above
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.
Can we also make the same change to the README.rst