mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-10 07:18:10 -05:00
* add replace-based block edit & preliminary test case fix * further fix the insert behavior * make edit only work on first occurence * bump codeact version since we now use new edit agentskills * update prompt for new agentskills * update integration tests * make run_infer.sh executable * remove code block for edit_file * update integration test for prompt changes * default to not use hint for eval * fix insert emptyfile bug * throw value error when `to_replace` is empty * make `_edit_or_insert_file` return string so we can try to fix some linter errors (best attempt) * add todo * update integration test * fix sandbox test for this PR
Introduction
This folder contains unit tests that could be run locally.
Run all test:
poetry run pytest ./tests/unit
Run specific test file:
poetry run pytest ./tests/unit/test_micro_agents.py
Run specific unit test
poetry run pytest ./tests/unit/test_micro_agents.py::test_coder_agent_with_summary
For a more verbose output, to above calls the -v flag can be used (even more verbose: -vv and -vvv):
poetry run pytest -v ./tests/unit/test_micro_agents.py
More details see pytest doc