Match receiver exclusive reconciliation end boundary
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a13eab-1e6a-7b33-9c37-372e90ada3a2
This commit is contained in:
parent
19b13f6f36
commit
ce5344da69
2 changed files with 7 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ def sanitize_record(record, source, tenant, instance, event_id, since, until):
|
|||
)
|
||||
accepted = record["accepted_at"]
|
||||
require(
|
||||
stamp(since) <= stamp(accepted) <= stamp(until),
|
||||
stamp(since) <= stamp(accepted) < stamp(until),
|
||||
"record_outside_acceptance_window",
|
||||
)
|
||||
action = record["action"]
|
||||
|
|
|
|||
|
|
@ -66,6 +66,12 @@ class ReadbackBounds(unittest.TestCase):
|
|||
with self.assertRaisesRegex(lane.LaneError, "acceptance_window"):
|
||||
self.sanitize(record)
|
||||
|
||||
def test_exact_until_is_excluded_like_receiver_sql(self):
|
||||
record = self.record()
|
||||
record["accepted_at"] = UNTIL
|
||||
with self.assertRaisesRegex(lane.LaneError, "acceptance_window"):
|
||||
self.sanitize(record)
|
||||
|
||||
def test_paths_are_bounded_to_exact_approved_coordinates(self):
|
||||
result = lane.paths(
|
||||
"qonto-assistant",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue