mirror of
https://github.com/dredx/prole.git
synced 2026-09-23 11:03:59 +00:00
- 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>
18 lines
505 B
Python
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")
|