fix: unskip 16 approval tests — remove stale has_pending/pop_pending imports
These two symbols were removed from tools.approval when the agent renamed has_pending -> has_blocking_approval (checks gateway queue, not _pending dict) and dropped pop_pending. They were only in the import block — never used in any test body — but their absence caused the entire file to skip via the APPROVAL_AVAILABLE guard. Before: 595 collected, 579 passed, 16 skipped After: 595 collected, 595 passed, 0 skipped Co-authored-by: Nathan Esquenazi <nesquena@gmail.com>
This commit is contained in:
@@ -27,9 +27,11 @@ try:
|
|||||||
_lock,
|
_lock,
|
||||||
_ApprovalEntry,
|
_ApprovalEntry,
|
||||||
submit_pending,
|
submit_pending,
|
||||||
has_pending,
|
|
||||||
pop_pending,
|
|
||||||
)
|
)
|
||||||
|
# has_pending and pop_pending were removed from tools.approval when the
|
||||||
|
# agent renamed has_pending -> has_blocking_approval (gateway queue check)
|
||||||
|
# and removed the polling-mode pop_pending. Routes now check _pending
|
||||||
|
# directly. These symbols are no longer part of the public API.
|
||||||
APPROVAL_AVAILABLE = True
|
APPROVAL_AVAILABLE = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
APPROVAL_AVAILABLE = False
|
APPROVAL_AVAILABLE = False
|
||||||
|
|||||||
Reference in New Issue
Block a user