Files
OpenHands/tests/unit
openhands 4aa021a511 feat: switch default base image to nikolaik slim variant
Switch the default base container image from nikolaik/python-nodejs:python3.12-nodejs22
to nikolaik/python-nodejs:python3.12-nodejs22-slim.

Benefits:
- ~500 MB smaller image size on disk (16% reduction)
- ~62% smaller compressed size for faster downloads
- Faster Kubernetes node autoscaling due to reduced pull times
- Full functional parity with the non-slim variant

The slim variant is based on Debian slim, which removes non-essential
packages while maintaining all functionality needed for OpenHands runtime.

Files updated:
- openhands/core/config/sandbox_config.py: Default base image
- openhands/runtime/utils/runtime_build.py: CLI default
- .github/workflows/ghcr-build.yml: CI/CD builds
- config.template.toml: Documentation
- tests/*: Test assertions
2026-03-05 20:05:42 +00:00
..
2025-08-22 14:02:36 +00:00
2025-10-14 02:16:44 +00:00

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