prole/tests/installer/test_build.py
chrisfu 4ee2b259c9 Checkpoint: rename installer to knoe + harden db build context
- Add build-context helper to copy Docker context safely (ignore runtime data, keep symlinks)

- Update UI and core actions to use ~/.prole/build and shared copy helper

- Add/adjust tests and scripts; introduce knoe ops helpers and update manifests

Co-authored-by: Junie <junie@jetbrains.com>
2026-03-22 01:45:21 -07:00

17 lines
424 B
Python

from pathlib import Path
from knoe.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