chore(pl): guard arrange path against dibang revoke rebuild

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-09-06 19:57:18 +08:00
1 parent 503b388a3f
commit 4c978296ff
1 file changed
+8
@@ -639,3 +639,11 @@ def test_upsert_remounts_monthly_plan_when_partner_changes(
assert inventory.plan_no == "SX-NEW"
mock_find_plan.assert_called()
mock_create_plan.assert_not_called()
def test_arrange_transport_source_has_no_revoke_call():
import inspect
from app.api.pl import transport as transport_api
src = inspect.getsource(transport_api.arrange_transport)
assert "revoke_regeneratable_dibang_for_transport" not in src