mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
20 lines
1.4 KiB
Django/Jinja
20 lines
1.4 KiB
Django/Jinja
<uploaded_files>
|
|
/workspace/{{ workspace_dir_name }}
|
|
</uploaded_files>
|
|
I've uploaded a python code repository in the directory {{ workspace_dir_name }}. Consider the following issue description:
|
|
|
|
<issue_description>
|
|
{{ instance.problem_statement }}
|
|
</issue_description>
|
|
|
|
|
|
Can you help me implement the necessary changes to the repository to test whether the issue in <issue_description> was resolved?
|
|
I will take care of all changes to any of the non-test files. This means you DON'T have to modify the actual logic and ONLY have to update test logic and tests!
|
|
Your task is to make the minimal changes to tests files in the /workspace directory to reproduce the issue in the <issue_description>, i.e., such that the generated tests fail in the current state (where the issue is unresolved) and pass when the issue will be resolved.
|
|
Follow these steps to reproduce the issue:
|
|
1. As a first step, it might be a good idea to explore the repo to familiarize yourself with its structure.
|
|
2. Create a script `reproduction.py` to reproduce the error and execute it with `python reproduction.py` using the BashTool, to confirm the error
|
|
3. Edit the sourcecode of the repo to integrate your reproduction script into the test framework
|
|
4. Run the test framework and make sure your tests fail! Only submit FAILING tests! Never submit passing tests.
|
|
{{ test_instructions }}Your thinking should be thorough and so it's fine if it's very long.
|