prole/tests/ops/test_components.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

18 lines
505 B
Python

from __future__ import annotations
from pathlib import Path
from unittest.mock import patch
from knoe.ops.context import KnoeContext
from knoe.ops.components import argocd
def test_component_wrapper_dispatches_to_expected_script(tmp_path: Path):
ctx = KnoeContext(project_root=tmp_path, env={})
with patch("knoe.ops.components.argocd.run_script", return_value=0) as m:
rc = argocd.initialize(ctx)
assert rc == 0
m.assert_called_once_with(ctx, "init_argocd.sh", "initialize")