|
|
@@ -51,7 +51,7 @@ async def test_simple_cmd_ipython_and_fileop(temp_dir, box_class, run_as_openhan
|
|
|
assert obs.content.strip() == (
|
|
|
'Hello, `World`!\n'
|
|
|
'[Jupyter current working directory: /workspace]\n'
|
|
|
- '[Jupyter Python interpreter: /openhands/poetry/openhands-5O4_aCHf-py3.11/bin/python]'
|
|
|
+ '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]'
|
|
|
)
|
|
|
|
|
|
# Test read file (file should not exist)
|
|
|
@@ -126,7 +126,7 @@ async def test_ipython_multi_user(temp_dir, box_class, run_as_openhands):
|
|
|
== (
|
|
|
'/workspace\n'
|
|
|
'[Jupyter current working directory: /workspace]\n'
|
|
|
- '[Jupyter Python interpreter: /openhands/poetry/openhands-5O4_aCHf-py3.11/bin/python]'
|
|
|
+ '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]'
|
|
|
).strip()
|
|
|
)
|
|
|
|
|
|
@@ -142,7 +142,7 @@ async def test_ipython_multi_user(temp_dir, box_class, run_as_openhands):
|
|
|
== (
|
|
|
'[Code executed successfully with no output]\n'
|
|
|
'[Jupyter current working directory: /workspace]\n'
|
|
|
- '[Jupyter Python interpreter: /openhands/poetry/openhands-5O4_aCHf-py3.11/bin/python]'
|
|
|
+ '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]'
|
|
|
).strip()
|
|
|
)
|
|
|
|
|
|
@@ -188,7 +188,7 @@ async def test_ipython_simple(temp_dir, box_class):
|
|
|
== (
|
|
|
'1\n'
|
|
|
'[Jupyter current working directory: /workspace]\n'
|
|
|
- '[Jupyter Python interpreter: /openhands/poetry/openhands-5O4_aCHf-py3.11/bin/python]'
|
|
|
+ '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]'
|
|
|
).strip()
|
|
|
)
|
|
|
|
|
|
@@ -225,7 +225,7 @@ async def _test_ipython_agentskills_fileop_pwd_impl(
|
|
|
'(this is the end of the file)\n'
|
|
|
'[File hello.py created.]\n'
|
|
|
'[Jupyter current working directory: /workspace]\n'
|
|
|
- '[Jupyter Python interpreter: /openhands/poetry/openhands-5O4_aCHf-py3.11/bin/python]'
|
|
|
+ '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]'
|
|
|
).strip().split('\n')
|
|
|
|
|
|
action = CmdRunAction(command='cd test')
|
|
|
@@ -249,7 +249,7 @@ async def _test_ipython_agentskills_fileop_pwd_impl(
|
|
|
'(this is the end of the file)\n'
|
|
|
'[File hello.py created.]\n'
|
|
|
'[Jupyter current working directory: /workspace/test]\n'
|
|
|
- '[Jupyter Python interpreter: /openhands/poetry/openhands-5O4_aCHf-py3.11/bin/python]'
|
|
|
+ '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]'
|
|
|
).strip().split('\n')
|
|
|
|
|
|
if enable_auto_lint:
|
|
|
@@ -283,7 +283,7 @@ Your changes have NOT been applied. Please fix your edit command and try again.
|
|
|
You either need to 1) Specify the correct start/end line arguments or 2) Correct your edit code.
|
|
|
DO NOT re-run the same failed edit command. Running it again will lead to the same error.
|
|
|
[Jupyter current working directory: /workspace/test]
|
|
|
-[Jupyter Python interpreter: /openhands/poetry/openhands-5O4_aCHf-py3.11/bin/python]
|
|
|
+[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]
|
|
|
"""
|
|
|
).strip().split('\n')
|
|
|
|
|
|
@@ -303,7 +303,7 @@ DO NOT re-run the same failed edit command. Running it again will lead to the sa
|
|
|
(this is the end of the file)
|
|
|
[File updated (edited at line 1). Please review the changes and make sure they are correct (correct indentation, no duplicate lines, etc). Edit the file again if necessary.]
|
|
|
[Jupyter current working directory: /workspace/test]
|
|
|
-[Jupyter Python interpreter: /openhands/poetry/openhands-5O4_aCHf-py3.11/bin/python]
|
|
|
+[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]
|
|
|
"""
|
|
|
).strip().split('\n')
|
|
|
|
|
|
@@ -371,7 +371,7 @@ async def test_ipython_agentskills_fileop_pwd_with_userdir(temp_dir, box_class):
|
|
|
'(this is the end of the file)\n'
|
|
|
'[File hello.py created.]\n'
|
|
|
'[Jupyter current working directory: /root]\n'
|
|
|
- '[Jupyter Python interpreter: /openhands/poetry/openhands-5O4_aCHf-py3.11/bin/python]'
|
|
|
+ '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]'
|
|
|
).strip().split('\n')
|
|
|
|
|
|
action = CmdRunAction(command='cd test')
|
|
|
@@ -395,7 +395,7 @@ async def test_ipython_agentskills_fileop_pwd_with_userdir(temp_dir, box_class):
|
|
|
'(this is the end of the file)\n'
|
|
|
'[File hello.py created.]\n'
|
|
|
'[Jupyter current working directory: /root/test]\n'
|
|
|
- '[Jupyter Python interpreter: /openhands/poetry/openhands-5O4_aCHf-py3.11/bin/python]'
|
|
|
+ '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]'
|
|
|
).strip().split('\n')
|
|
|
|
|
|
await runtime.close()
|
|
|
@@ -432,7 +432,7 @@ async def test_ipython_package_install(temp_dir, box_class, run_as_openhands):
|
|
|
assert obs.content.strip() == (
|
|
|
'[Code executed successfully with no output]\n'
|
|
|
'[Jupyter current working directory: /workspace]\n'
|
|
|
- '[Jupyter Python interpreter: /openhands/poetry/openhands-5O4_aCHf-py3.11/bin/python]'
|
|
|
+ '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]'
|
|
|
)
|
|
|
|
|
|
await runtime.close()
|