diff options
author | 2022-05-29 11:37:09 -0700 | |
---|---|---|
committer | 2022-05-29 11:44:04 -0700 | |
commit | 8906a1bfb7dc13ac05450f8369cb8b0a74fc1983 (patch) | |
tree | 14380e28df0316389336bc40928e413895f83020 | |
parent | Fix paths to files in CONTRIBUTING.md (diff) |
Fix 415 error response title
The update to Falcon v3 changed its capitalisation.
-rw-r--r-- | snekbox/api/snekapi.py | 2 | ||||
-rw-r--r-- | tests/api/test_eval.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/snekbox/api/snekapi.py b/snekbox/api/snekapi.py index c9c2015..a1804e6 100644 --- a/snekbox/api/snekapi.py +++ b/snekbox/api/snekapi.py @@ -15,7 +15,7 @@ class SnekAPI(falcon.App): Error response format: >>> { - ... "title": "Unsupported media type", + ... "title": "415 Unsupported Media Type", ... "description": "application/xml is an unsupported media type." ... } """ diff --git a/tests/api/test_eval.py b/tests/api/test_eval.py index bdeee3e..24e673a 100644 --- a/tests/api/test_eval.py +++ b/tests/api/test_eval.py @@ -51,7 +51,7 @@ class TestEvalResource(SnekAPITestCase): self.assertEqual(result.status_code, 415) expected = { - "title": "Unsupported media type", + "title": "415 Unsupported Media Type", "description": "application/xml is an unsupported media type." } |