commit d92411b8e40a9db9ed38dc310df80cbba40db003 parent 71723e9e399b804ab66fed332a61b825b1ee4646 Author: triesap <tyson@radroots.org> Date: Thu, 9 Apr 2026 22:49:55 +0000 tests: prove hyf protected data stays absent Diffstat:
| M | tests/test_stdio_contract.mojo | | | 31 | +++++++++++++++++++++++++++++++ |
1 file changed, 31 insertions(+), 0 deletions(-)
diff --git a/tests/test_stdio_contract.mojo b/tests/test_stdio_contract.mojo @@ -415,6 +415,37 @@ def test_query_rewrite_success() raises: ) +def test_query_rewrite_does_not_create_protected_local_artifacts() raises: + with TemporaryDirectory() as temp_dir: + with ScopedEnvVar(HYF_PATHS_PROFILE_ENV, "repo_local"): + with ScopedEnvVar(HYF_PATHS_REPO_LOCAL_ROOT_ENV, temp_dir): + var response = run_stdio_entrypoint( + "src/main.mojo", + load_scenario_request_json( + "scenarios/query_rewrite_local_pickup_weekend.json" + ), + ) + + assert_true(response["ok"].bool_value()) + assert_true( + not exists( + Path(temp_dir) + / "data" + / "services" + / "hyf" + / "protected" + ) + ) + assert_true( + not exists( + Path(temp_dir) + / "cache" + / "services" + / "hyf" + ) + ) + + def test_semantic_rank_exports_heuristic_score_without_latency() raises: var response = run_hyf_stdio( load_scenario_request_json(