From 7afaffb13baf8e6f87ef84bccaf0806b9aa1c7eb Mon Sep 17 00:00:00 2001 From: ChrisJL Date: Sat, 5 Oct 2024 09:45:16 +0100 Subject: [PATCH] Correct spelling errors Co-authored-by: Mark <1515135+MarkKoz@users.noreply.github.com> --- README.md | 2 +- tests/test_integration.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2b4e9fd6..6e9b0e81 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ The above command will make the API accessible on the host via `http://localhost ### Python multi-version support -By default, the binary ran within nsjail is the binary specified by `DEFAULT_BINARY_PATH` at the top of [`nsjail.py`]. This can be overridden by specifying `binary_path` in the request body of calls to `POST /eval` or by setting the `binary_path` kwarg if calling `NSJail.python3()` directly. +By default, the binary that runs within nsjail is the binary specified by `DEFAULT_BINARY_PATH` at the top of [`nsjail.py`]. This can be overridden by specifying `binary_path` in the request body of calls to `POST /eval` or by setting the `binary_path` kwarg if calling `NSJail.python3()` directly. Any binary that exists within the container is a valid value for `binary_path`. The main use case of this feature is currently to specify the version of Python to use. diff --git a/tests/test_integration.py b/tests/test_integration.py index 62a7d69c..e173dd36 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -85,11 +85,11 @@ def invalid_binary_paths(self): """Test that passing invalid binary paths result in no code execution.""" with run_gunicorn(): cases = [ - ("/abc/def", "test non-existant files are not run", "binary_path does not exist"), - ("/snekbin", "test directories are not ran", "binary_path is not a file"), + ("/abc/def", "test non-existent files are not run", "binary_path does not exist"), + ("/snekbin", "test directories are not run", "binary_path is not a file"), ( "/etc/hostname", - "test non-executable files are not ran", + "test non-executable files are not run", "binary_path is not executable", ), ]