test: update explicit-pick regex for broadened _explicitPick inference
The consume-clear guard now checks _pendingPickMatch (the pending onchange marker match) instead of the broadened _explicitPick, which may also be true from the new _isCrossProviderPick inference without a pending marker to consume.
This commit is contained in:
1 parent
96265f6ae4
commit
42fedaf780
1 file changed
+5
-3
@@ -61,9 +61,11 @@ def test_send_consumes_pending_pick_after_reading_it():
|
||||
assert "_clearPendingSessionModel(activeSid)" in region, (
|
||||
"send() must consume (clear) the pending explicit-pick marker after reading it"
|
||||
)
|
||||
# The clear must be gated on _explicitPick (only consume a genuine, matching pick).
|
||||
assert re.search(r"_explicitPick\s*&&[^\n]*_clearPendingSessionModel", region), (
|
||||
"the consume-clear must be gated on _explicitPick"
|
||||
# The clear must be gated on a genuine, matching pending pick (not on the
|
||||
# broadened _explicitPick which may also be true from a cross-provider
|
||||
# inference without a pending marker to consume).
|
||||
assert re.search(r"_pendingPickMatch\s*&&[^\\n]*_clearPendingSessionModel", region), (
|
||||
"the consume-clear must be gated on _pendingPickMatch (a genuine, matching pending pick)"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user