Skip to content

Commit

Permalink
graphql: improve error case test
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Dec 3, 2018
1 parent 12cd79c commit f3fefe4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions graphql_demo/tests/test_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,6 @@ def test_get_mutation_not_allowed(self):
self.assertEqual(r.status_code, 405)
self.assertEqual(r.headers["Content-Type"], "application/json")
self.assertIn(
"Can only perform a mutation operation from a POST request.",
r.json()["errors"][0]["message"],
)

0 comments on commit f3fefe4

Please sign in to comment.