test(hindsight): run pure gate tests on Windows too

test_gate_refuses_keyless_build_against_keyed_disk and test_rewrite_allowed_when_build_carries_key touch no filesystem modes, so the nt skip guard was needlessly excluding them. Addresses review feedback on PR #103957.

(cherry picked from commit 196cf723571c87829be61e17df27869948db00a0)
This commit is contained in:
red4711
2026-09-06 05:55:23 +00:00
committed by Teknium
parent 2c24ed4b6e
commit d0d5c7745a
@@ -122,7 +122,6 @@ def test_scopeless_worker_reuses_on_disk_key(monkeypatch):
secret_scope.reset_secret_scope(token)
@pytest.mark.skipif(os.name == "nt", reason="POSIX mode bits are not enforced on Windows")
def test_gate_refuses_keyless_build_against_keyed_disk(monkeypatch):
"""_may_rewrite_profile_env False branch: keyless build + keyed disk."""
import plugins.memory.hindsight.embedded as hs_embedded
@@ -181,7 +180,7 @@ def test_on_disk_key_survives_empty_build(monkeypatch):
secret_scope.reset_secret_scope(token)
def test_rewrite_allowed_when_build_carries_key(monkeypatch):
def test_rewrite_allowed_when_build_carries_key():
"""A build WITH key material (rotation, model drift) must still rewrite."""
profile_env = _embedded_profile_env_path(_CONFIG)
profile_env.parent.mkdir(parents=True)