Skip to content

Add a default msg to show the response content.#1064

Merged
zbyte64 merged 2 commits intographql-python:masterfrom
jackton1:patch-1
Nov 27, 2020
Merged

Add a default msg to show the response content.#1064
zbyte64 merged 2 commits intographql-python:masterfrom
jackton1:patch-1

Conversation

@jackton1
Copy link
Contributor

@jackton1 jackton1 commented Nov 18, 2020

This seems like an issue with using assertResponseNoErrors and assertResponseHasErrors

Which doesn't include any errors specific to the response and currently just shows.

    self.assertNotIn("errors", list(content.keys()))
AssertionError: 'errors' unexpectedly found in ['errors', 'data']

Expected:

self.assertNotIn("errors", list(content.keys()), content)
AssertionError: 'errors' unexpectedly found in ['errors', 'data'] : {'errors': [{'message': "mutate() missing 1 required positional argument: 'info'", 'locations': [{'line': 3, 'column': 17}], 'path': ['eventCancel']}], 'data': None}

@artofhuman @syrusakbary

This seems like an issue with using assertResponseNoErrors and assertResponseHasErrors 

Which doesn't include any errors specific to the response and currently just shows.

```python
    self.assertNotIn("errors", list(content.keys()))
AssertionError: 'errors' unexpectedly found in ['errors', 'data']
```
Copy link
Collaborator

@zbyte64 zbyte64 left a comment

Choose a reason for hiding this comment

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

👍 Nice polish

@tcleonard
Copy link
Collaborator

Nice

@zbyte64 zbyte64 merged commit 4b7119d into graphql-python:master Nov 27, 2020
@jackton1 jackton1 deleted the patch-1 branch December 11, 2020 17:34
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.

4 participants