mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
* Fix pypi build The package on pypi only included opendevin/* (the poetry default). It also needs to include agenthub/* * Bumped version so people will actually get it! * Fix package definition * Updated poetry lock file * Update package name to openhands-ai * Add py.typed to indicate that OpenHands has type annotations * Replace package name with openhands_ai * Fix tests to reflect new name --------- Co-authored-by: Graham Neubig <neubig@gmail.com>
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