Engel Nyst 590ebb6e47 Small fix and addition for token counting (#5550) 11 meses atrás
..
resolver 6de177521f Fix issue #5450: In openhands-resolver.yml, request code review from the person who initiated the workflow (#5451) 1 ano atrás
README.md 9605106e72 feat: append_file incl. all tests [agentskills] (#2346) 1 ano atrás
test_acompletion.py 0a03c802f5 Refactor llm.py (#4057) 1 ano atrás
test_action_serialization.py 4eea1286d4 Issue #4399 : Replaced all occurences (#4878) 1 ano atrás
test_agent_controller.py 436ecb80a3 Logger fixes for openhands-resolver (#4710) 1 ano atrás
test_agent_skill.py c5117bc48d Upgrade `openhands-aci` to v0.1.2 (#5397) 1 ano atrás
test_arg_parser.py 1146b6248b Support multiline and default user messages (#5400) 1 ano atrás
test_async_utils.py e12bff5189 Fix: Removed flaky test (#4444) 1 ano atrás
test_bash_parsing.py 01ae22ef57 Rename OpenDevin to OpenHands (#3472) 1 ano atrás
test_browsing_agent_parser.py 20455cea3e (Browsing agent) Fix send_msg_to_user (#4354) 1 ano atrás
test_chunk_localizer.py da548d308c [agent] LLM-based editing (#3985) 1 ano atrás
test_codeact_agent.py 07f0d1ccb3 feat(llm): convert function call request for non-funcall OSS model (#4711) 1 ano atrás
test_command_success.py 6a6ce5f3ee Fix issue #5478: Add color to the line next to "Ran a XXX Command" based on return value (#5483) 1 ano atrás
test_condenser.py 01ae22ef57 Rename OpenDevin to OpenHands (#3472) 1 ano atrás
test_config.py 590ebb6e47 Small fix and addition for token counting (#5550) 11 meses atrás
test_event_serialization.py 6a6ce5f3ee Fix issue #5478: Add color to the line next to "Ran a XXX Command" based on return value (#5483) 1 ano atrás
test_event_stream.py be6ca4a3ce Add event search endpoint with pagination and filtering (#4688) 1 ano atrás
test_import_utils.py c3ddb26e43 Feat named imports (#5413) 1 ano atrás
test_is_stuck.py f0257c793b fix: allow to continue when the agent is stuck in interactive mode (#5597) 11 meses atrás
test_json.py 4eea1286d4 Issue #4399 : Replaced all occurences (#4878) 1 ano atrás
test_listen.py c3ddb26e43 Feat named imports (#5413) 1 ano atrás
test_llm.py 590ebb6e47 Small fix and addition for token counting (#5550) 11 meses atrás
test_llm_fncall_converter.py 07f0d1ccb3 feat(llm): convert function call request for non-funcall OSS model (#4711) 1 ano atrás
test_logging.py c6ba0e8339 Remove singleton config (#3614) 1 ano atrás
test_manager.py de81020a8d Feat: Introduce class for SessionInitData rather than using a dict (#5406) 1 ano atrás
test_memory.py 0687608feb [Arch proposal] ENVIRONMENT event source (#4584) 1 ano atrás
test_message_serialization.py d733bc6bdd fix: serialize tool calls (#5553) 11 meses atrás
test_micro_agents.py eeb2342509 Refactor history/event stream (#3808) 1 ano atrás
test_microagent_utils.py be82832eb1 Use keyword matching for CodeAct microagents (#4568) 1 ano atrás
test_observation_serialization.py 6a6ce5f3ee Fix issue #5478: Add color to the line next to "Ran a XXX Command" based on return value (#5483) 1 ano atrás
test_prompt_caching.py 07f0d1ccb3 feat(llm): convert function call request for non-funcall OSS model (#4711) 1 ano atrás
test_prompt_manager.py 07f0d1ccb3 feat(llm): convert function call request for non-funcall OSS model (#4711) 1 ano atrás
test_response_parsing.py e6847e9e61 Move agenthub within openhands (#4130) 1 ano atrás
test_runtime_build.py 7e4c1c733b feat(sandbox): add support for extra Docker build arguments (#5447) 1 ano atrás
test_security.py 6a6ce5f3ee Fix issue #5478: Add color to the line next to "Ran a XXX Command" based on return value (#5483) 1 ano atrás
test_storage.py 8c4c3b18b5 Feat google cloud storage (#3574) 1 ano atrás
test_truncation.py 8dee334236 Context Window Exceeded fix (#4977) 1 ano atrás

README.md

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