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

25 lines
630 B
Python

from __future__ import annotations
from pathlib import Path
from knoe.ops.context import KnoeContext
def test_knoe_context_construction(tmp_path: Path):
ctx = KnoeContext(
project_root=tmp_path,
cfg_path=None,
mode="dev",
namespace="ns",
service_namespace="svc",
env={"HELLO": "world"},
logger=lambda _: None,
err_logger=lambda _: None,
)
assert ctx.project_root == tmp_path
assert ctx.cfg_path is None
assert ctx.mode == "dev"
assert ctx.namespace == "ns"
assert ctx.service_namespace == "svc"
assert ctx.env["HELLO"] == "world"