aboutsummaryrefslogtreecommitdiffstats
path: root/tests/api/test_eval.py
diff options
context:
space:
mode:
authorGravatar Mark <[email protected]>2022-06-04 12:49:47 -0700
committerGravatar GitHub <[email protected]>2022-06-04 12:49:47 -0700
commit2759fd453f5977f027a10cc672fed630ecc7de6c (patch)
treeecaa6114606415e3b95ba707661d70a1cb87fd90 /tests/api/test_eval.py
parentMerge pull request #143 from python-discord/feat/tests/wsgi-app-from-cfg (diff)
parentCI: use GH's Ubuntu 22.04 runner instead of the self-hosted one (diff)
Merge #144 - add black and isort
Diffstat (limited to 'tests/api/test_eval.py')
-rw-r--r--tests/api/test_eval.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/api/test_eval.py b/tests/api/test_eval.py
index 24e673a..976970e 100644
--- a/tests/api/test_eval.py
+++ b/tests/api/test_eval.py
@@ -20,15 +20,13 @@ class TestEvalResource(SnekAPITestCase):
expected = {
"title": "Request data failed validation",
- "description": "'input' is a required property"
+ "description": "'input' is a required property",
}
self.assertEqual(expected, result.json)
def test_post_invalid_data_400(self):
- bodies = (
- {"input": 400}, {"input": "", "args": [400]}
- )
+ bodies = ({"input": 400}, {"input": "", "args": [400]})
for body in bodies:
with self.subTest():
@@ -38,7 +36,7 @@ class TestEvalResource(SnekAPITestCase):
expected = {
"title": "Request data failed validation",
- "description": "400 is not of type 'string'"
+ "description": "400 is not of type 'string'",
}
self.assertEqual(expected, result.json)
@@ -52,7 +50,7 @@ class TestEvalResource(SnekAPITestCase):
expected = {
"title": "415 Unsupported Media Type",
- "description": "application/xml is an unsupported media type."
+ "description": "application/xml is an unsupported media type.",
}
self.assertEqual(expected, result.json)