prole/tests/installer/test_build.py
chrisfu 906392d462 feat(installer): improve UI and add test coverage for core features
- Refactored installer UI with updated canvas rendering, sidebar navigation, and footer buttons.
- Enhanced styling for macOS compatibility and consistent design across controls.
- Added Pytest-based unit tests for `screen.py` and `config.py`.
- Expanded dependency catalog with new tools like `tshark` and `pyshark`.
- Improved error tolerance for background rendering and added placeholders for Kerberos configuration.
2026-01-08 21:51:30 -08:00

16 lines
432 B
Python

from pathlib import Path
from installer.build import get_build_command
def test_get_build_command():
root = Path("/fake/root")
cmd = get_build_command(root, "Dev")
assert 'cd "/fake/root"' in cmd
assert "PROLE_VERBOSE=1" in cmd
assert "# Dev" in cmd
cmd_prod = get_build_command(root, "Prod")
assert "# Prod" in cmd_prod
cmd_none = get_build_command(root, None)
assert "# Dev" in cmd_none