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>
25 lines
630 B
Python
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"
|