diff options
author | 2022-11-28 09:13:43 +0800 | |
---|---|---|
committer | 2022-11-28 09:13:43 +0800 | |
commit | d67b70bdbb3277babd130dd4914f16de8ba8a9b5 (patch) | |
tree | c1af2fdd12454f97344343276bcdec270d53703c /tests | |
parent | Docstring update (diff) |
Docstring phrasing update
Co-authored-by: Mark <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/api/test_eval.py | 6 | ||||
-rw-r--r-- | tests/test_libmount.py | 2 |
2 files changed, 4 insertions, 4 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", diff --git a/tests/test_libmount.py b/tests/test_libmount.py index 8e56970..a9a5e5b 100644 --- a/tests/test_libmount.py +++ b/tests/test_libmount.py @@ -15,7 +15,7 @@ class LibMountTests(TestCase): @contextmanager def get_mount(self): - """Yields a valid mount point, unmounts after context.""" + """Yield a valid mount point and unmount after context.""" path = self.temp_dir / str(uuid4()) path.mkdir() try: |