test(#7510): clean up ruff F401/F841 in the raw-pending-approval test (#7552)

Follow-up to #7551: the merged test file carried an unused `route_approvals as ra`
import and two unused `entry =` assignments (advisory lint gate was red, though not
a required check). Drop them; the two `entry` bindings that are asserted on are kept.

Co-authored-by: nesquena-hermes <nesquena-hermes@users.noreply.github.com>
This commit is contained in:
nesquena-hermesandnesquena-hermes authored and GitHub committed 2026-09-13 03:16:48 +00:00
1 parent e2ce040f1f
commit e36f773891
1 file changed
+2 -3
+2 -3
View File
@@ -44,7 +44,6 @@ from unittest.mock import patch
import pytest import pytest
from api import models from api import models
from api import route_approvals as ra
from api import routes from api import routes
try: try:
@@ -177,7 +176,7 @@ def test_raw_pending_entry_respond_with_minted_id_pops_entry():
"""An exact-id response must pop the raw entry and report ok (no waiter """An exact-id response must pop the raw entry and report ok (no waiter
exists behind this shape — draining is the correct resolution).""" exists behind this shape — draining is the correct resolution)."""
sid = f"raw-resp-{uuid.uuid4().hex[:8]}" sid = f"raw-resp-{uuid.uuid4().hex[:8]}"
entry = _seed_raw_pending(sid) _seed_raw_pending(sid)
# The incident session had a LIVE run pointer; the stale stream-pointer # The incident session had a LIVE run pointer; the stale stream-pointer
# guard must not 409 the click before the legacy resolver pops the entry. # guard must not 409 the click before the legacy resolver pops the entry.
_register_session(sid, active_stream_id="stream-raw-resp-live") _register_session(sid, active_stream_id="stream-raw-resp-live")
@@ -231,7 +230,7 @@ def test_raw_pending_entry_yolo_skip_all_drains():
"""Skip-all (yolo release) must drain the raw entry instead of leaving the """Skip-all (yolo release) must drain the raw entry instead of leaving the
phantom card, and report the yolo state truthfully.""" phantom card, and report the yolo state truthfully."""
sid = f"raw-yolo-{uuid.uuid4().hex[:8]}" sid = f"raw-yolo-{uuid.uuid4().hex[:8]}"
entry = _seed_raw_pending(sid) _seed_raw_pending(sid)
_register_session(sid) _register_session(sid)
try: try:
approval_id = _poll_pending(sid)["pending"]["approval_id"] approval_id = _poll_pending(sid)["pending"]["approval_id"]