Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/control_plane/test_refresh_settle_turn.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,16 @@ def test_exact_spend_and_refresh_reject_another_turns_debit_file(

@pytest.mark.parametrize("provider", ["file", "sqlite"])
def test_receipt_capture_failure_keeps_committed_receipts_and_exact_retry(tmp_path, monkeypatch, provider):
from loopx.control_plane.turn_driver import decision_capture

if not decision_capture.private_capture_supported():
# This case models a real capture-privacy failure by loosening POSIX
# mode bits. Hosts without private capture support never reach that
# branch: the composed settlement returns the evaluated result inline
# with `quota_decision_capture_unsupported`, which
# test_composed_settlement_keeps_commit_when_private_capture_is_unsupported
# covers cross-platform.
pytest.skip("chmod cannot revoke private capture on this host")
isolate_sqlite_runtime(tmp_path, monkeypatch)
project, runtime, registry = _write_fixture(tmp_path)
_initialize_fixture_authority(project, runtime, provider=provider)
Expand Down
Loading