- Added `ollama-models.yaml` to .gitignore and implemented logic to copy it in gpu-rent.ps1 and gpu-rent.sh. - Enhanced env.example to include new variables for LLM runtime options and local watchdog configuration. - Updated CLI commands to support LLM options during setup and execution, including new flags for Ollama and llama.cpp. - Improved documentation in cli.md and README.md to reflect changes in LLM integration and local watchdog functionality. - Adjusted architecture and decisions documentation to clarify the role of LLMs and local watchdog in the system.
25 lines
613 B
Python
25 lines
613 B
Python
from typer.testing import CliRunner
|
|
|
|
from gpu_rent.cli import app
|
|
|
|
runner = CliRunner()
|
|
|
|
|
|
def test_help():
|
|
result = runner.invoke(app, ["--help"])
|
|
assert result.exit_code == 0
|
|
assert "doctor" in result.stdout
|
|
|
|
|
|
def test_version():
|
|
result = runner.invoke(app, ["version"])
|
|
assert result.exit_code == 0
|
|
assert "0.2.0" in result.stdout
|
|
|
|
|
|
def test_up_nyi_after_missing_env(monkeypatch, tmp_path):
|
|
monkeypatch.setenv("HOME", str(tmp_path))
|
|
monkeypatch.setenv("USERPROFILE", str(tmp_path))
|
|
result = runner.invoke(app, ["up"])
|
|
assert result.exit_code != 0
|