mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-04-29 03:00:45 -04:00
Resolved merge conflicts by: - Keeping main's versions of files that were deleted or moved - Re-applying PR changes to agent_chat.py and tui.py - Maintaining all PR functionality (conversation listing, loading, and completion) PR files preserved: - openhands-cli/openhands_cli/conversation_manager.py - openhands-cli/tests/test_conversation_manager.py Modified files with PR changes re-applied: - openhands-cli/openhands_cli/agent_chat.py - openhands-cli/openhands_cli/tui/tui.py Co-authored-by: openhands <openhands@all-hands.dev>
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_llm_fncall_converter.py
Run specific unit test
poetry run pytest ./tests/unit/test_llm_fncall_converter.py::test_convert_tool_call_to_string
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_llm_fncall_converter.py
More details see pytest doc