Files
gpu-rent/tests/test_bootstrap.py
T
Leonid Pershin c2ca39a4a7 Update CLI and roadmap documentation; clean up code
- Revised CLI documentation to clarify the sequence of operations for the `up` command and updated the status of features.
- Enhanced the roadmap with completed tasks marked as done.
- Removed unused import in clone_ext.py for cleaner code.
- Added assertions in test_bootstrap.py to ensure correct script generation and validate the presence of autocompletion data.
2026-08-21 03:13:31 +03:00

19 lines
756 B
Python

from gpu_rent.bootstrap import bootstrap_script
def test_bootstrap_script_is_native_swarmui():
script = bootstrap_script()
assert "docker.io" not in script
assert "docker run" not in script
assert "nvidia-container" not in script
assert "/opt/swarmui" in script
assert "/mnt/swarm_data" in script
assert "launch-linux.sh --launch_mode none --host 127.0.0.1 --port 7801" in script
assert "systemctl enable swarmui" in script
assert "systemctl restart swarmui" not in script
assert "Data/Autocompletions" in script
assert "mkfs.ext4" in script
assert "apt-get upgrade" not in script
assert ".gpu-rent-ready" in script
assert "src/BuiltinExtensions/ComfyUIBackend/DLNodes" in script