Xingyao Wang ec3152b6e1 linter: only lint on updated lines in the new file (#4409) 1 жил өмнө
..
linters ec3152b6e1 linter: only lint on updated lines in the new file (#4409) 1 жил өмнө
README.md 9605106e72 feat: append_file incl. all tests [agentskills] (#2346) 1 жил өмнө
test_acompletion.py 0a03c802f5 Refactor llm.py (#4057) 1 жил өмнө
test_action_serialization.py f60652dc5a Hide hard-coded commands from the agent (#4330) 1 жил өмнө
test_agent_controller.py 804674bb9f refactor the logic in agent_controller to imporve readability (#3873) 1 жил өмнө
test_agent_skill.py 87021bd78f Add docs about using pre-built image + remove duplicated method (#4359) 1 жил өмнө
test_arg_parser.py c8a933590a (feat) allow specification of config.toml location via args (solves #3947) (#4168) 1 жил өмнө
test_async_utils.py e12bff5189 Fix: Removed flaky test (#4444) 1 жил өмнө
test_bash_parsing.py 01ae22ef57 Rename OpenDevin to OpenHands (#3472) 1 жил өмнө
test_browsing_agent_parser.py 20455cea3e (Browsing agent) Fix send_msg_to_user (#4354) 1 жил өмнө
test_codeact_agent.py e6847e9e61 Move agenthub within openhands (#4130) 1 жил өмнө
test_codeact_agent_parser.py df23168c10 AgentDelegateAction: make delegate start with the task in execute tags, not the rest of the parent LLM response (#4327) 1 жил өмнө
test_condenser.py 01ae22ef57 Rename OpenDevin to OpenHands (#3472) 1 жил өмнө
test_config.py 9566ca4a3c Implement basic modal sandbox support (#4133) 1 жил өмнө
test_event_stream.py 01ae22ef57 Rename OpenDevin to OpenHands (#3472) 1 жил өмнө
test_is_stuck.py da23189e4c refactor: move get_pairs from memory to shared utils (#4411) 1 жил өмнө
test_json.py a33f61c025 (feat) Show messages' timestamp in UI (#3869) 1 жил өмнө
test_listen.py 01ae22ef57 Rename OpenDevin to OpenHands (#3472) 1 жил өмнө
test_llm.py e582806004 Vision and prompt caching fixes (#4014) 1 жил өмнө
test_logging.py c6ba0e8339 Remove singleton config (#3614) 1 жил өмнө
test_memory.py be9619be3a Feat faster unit tests 2 (#4418) 1 жил өмнө
test_message_serialization.py e582806004 Vision and prompt caching fixes (#4014) 1 жил өмнө
test_micro_agents.py e6847e9e61 Move agenthub within openhands (#4130) 1 жил өмнө
test_microagent_utils.py e6847e9e61 Move agenthub within openhands (#4130) 1 жил өмнө
test_observation_serialization.py f60652dc5a Hide hard-coded commands from the agent (#4330) 1 жил өмнө
test_prompt_caching.py e6847e9e61 Move agenthub within openhands (#4130) 1 жил өмнө
test_prompt_manager.py e6847e9e61 Move agenthub within openhands (#4130) 1 жил өмнө
test_response_parsing.py e6847e9e61 Move agenthub within openhands (#4130) 1 жил өмнө
test_runtime_build.py 5fb3dece93 Feat: Divided docker layer to make it easier to cache (#4313) 1 жил өмнө
test_security.py be9619be3a Feat faster unit tests 2 (#4418) 1 жил өмнө
test_storage.py 8c4c3b18b5 Feat google cloud storage (#3574) 1 жил өмнө

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