mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-10 07:18:10 -05:00
* support loading a particular runtime class via config.runtime (default to server to not break things) * move image agnostic util to shared runtime util * move dependency * include poetry.lock in sdist * accept port as arg for client * make client start server with specified port * update image agnostic utility for eventstream runtime * make client and runtime working with REST API * rename execute_server * add plugin to initialize stuff inside es-runtime; cleanup runtime methods to delegate everything to container * remove redundant ls -alh * fix jupyter * improve logging in agnostic sandbox * improve logging of test function * add read & edit * update agnostic sandbox * support setting work dir at start * fix file read/write test * fix unit test * update tescase * Fix unit test again * fix unit test again again
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