diff options
author | 2022-11-28 09:13:43 +0800 | |
---|---|---|
committer | 2022-11-28 09:13:43 +0800 | |
commit | d67b70bdbb3277babd130dd4914f16de8ba8a9b5 (patch) | |
tree | c1af2fdd12454f97344343276bcdec270d53703c /tests/api/test_eval.py | |
parent | Docstring update (diff) |
Docstring phrasing update
Co-authored-by: Mark <[email protected]>
Diffstat (limited to 'tests/api/test_eval.py')
-rw-r--r-- | tests/api/test_eval.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/api/test_eval.py b/tests/api/test_eval.py index 65cd9a4..c103880 100644 --- a/tests/api/test_eval.py +++ b/tests/api/test_eval.py @@ -41,7 +41,7 @@ class TestEvalResource(SnekAPITestCase): self.assertEqual(expected_json, result.json) def test_files_path(self): - """Normal paths, should work with 200.""" + """Normal paths should work with 200.""" test_paths = [ "file.txt", "./file.jpg", @@ -59,7 +59,7 @@ class TestEvalResource(SnekAPITestCase): self.assertEqual(0, result.json["returncode"]) def test_files_illegal_path_traversal(self): - """Traversal beyond root, should be denied with 400 error.""" + """Traversal beyond root should be denied with 400 error.""" test_paths = [ "../secrets", "../../dir", @@ -78,7 +78,7 @@ class TestEvalResource(SnekAPITestCase): self.assertEqual(expected, result.json) def test_files_illegal_path_absolute(self): - """Absolute file paths, should be denied with 400 error.""" + """Absolute file paths should be denied with 400 error.""" test_paths = [ "/etc/vars/secrets", "/absolute", |