feat: add safe BLE discovery and network baseline tools

This commit is contained in:
DCCONSTRUCTIONS
2026-07-15 15:26:14 +03:00
parent 4c401bc59b
commit faa442eefc
16 changed files with 666 additions and 6 deletions
+11
View File
@@ -0,0 +1,11 @@
import json
from pathlib import Path
from k1link.artifacts import write_json_atomic
def test_write_json_atomic(tmp_path: Path) -> None:
output = tmp_path / "nested" / "artifact.json"
write_json_atomic(output, {"value": "тест"})
assert json.loads(output.read_text(encoding="utf-8")) == {"value": "тест"}
assert not list(output.parent.glob("*.tmp"))