aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_integration.py10
-rw-r--r--tests/test_nsjail.py4
2 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_integration.py b/tests/test_integration.py
index 9ae2da8..7935b6d 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -65,12 +65,12 @@ class IntegrationTests(unittest.TestCase):
"test default binary is used when binary_path not specified",
),
(
- get_python_version_body | {"binary_path": "/lang/python/3.12/bin/python"},
+ get_python_version_body | {"binary_path": "/snekbin/python/3.12/bin/python"},
"3.12\n",
"test default binary is used when explicitly set",
),
(
- get_python_version_body | {"binary_path": "/lang/python/3.13/bin/python"},
+ get_python_version_body | {"binary_path": "/snekbin/python/3.13/bin/python"},
"3.13\n",
"test alternative binary is used when set",
),
@@ -85,10 +85,10 @@ class IntegrationTests(unittest.TestCase):
"""Test that passing invalid binary paths result in no code execution."""
with run_gunicorn():
cases = [
- ("/bin/bash", "test files outside of /lang cannot be run"),
+ ("/bin/bash", "test files outside of /snekbin cannot be run"),
(
- "/lang/../bin/bash",
- "test path traversal still stops files outside /lang from running",
+ "/snekbin/../bin/bash",
+ "test path traversal still stops files outside /snekbin from running",
),
("/foo/bar", "test non-existant files are not run"),
]
diff --git a/tests/test_nsjail.py b/tests/test_nsjail.py
index 2d21ad3..a3f1312 100644
--- a/tests/test_nsjail.py
+++ b/tests/test_nsjail.py
@@ -26,7 +26,7 @@ class NsJailTests(unittest.TestCase):
# Hard-coded because it's non-trivial to parse the mount options.
self.shm_mount_size = 40 * Size.MiB
- self.default_binary_path = "/lang/python/default/bin/python"
+ self.default_binary_path = "/snekbin/python/default/bin/python"
def eval_code(self, code: str):
return self.nsjail.python3(["-c", code])
@@ -84,7 +84,7 @@ class NsJailTests(unittest.TestCase):
for _ in range({max_pids}):
print(subprocess.Popen(
[
- '/lang/python/default/bin/python',
+ '/snekbin/python/default/bin/python',
'-c',
'import time; time.sleep(1)'
],