diff --git a/pyproject.toml b/pyproject.toml index 3e81357..e11f7dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,6 +10,8 @@ dependencies = [ "anthropic", "tomli-w", "psutil>=7.2.2", + "fastapi", + "uvicorn", ] [dependency-groups] diff --git a/requirements.txt b/requirements.txt index 93cca2f..87461a1 100644 Binary files a/requirements.txt and b/requirements.txt differ diff --git a/tests/test_headless_dependencies.py b/tests/test_headless_dependencies.py new file mode 100644 index 0000000..ff7581e --- /dev/null +++ b/tests/test_headless_dependencies.py @@ -0,0 +1,16 @@ +import pytest +import importlib + +def test_fastapi_installed(): + """Verify that fastapi is installed.""" + try: + importlib.import_module("fastapi") + except ImportError: + pytest.fail("fastapi is not installed") + +def test_uvicorn_installed(): + """Verify that uvicorn is installed.""" + try: + importlib.import_module("uvicorn") + except ImportError: + pytest.fail("uvicorn is not installed")