Align patrol delete module naming

Rename the patrol deletion implementation and browser helper scripts away from the generic product name so the filesystem matches the queued patrol-delete task domain. Update imports, script loading, and tests to use the patrol_delete module path.

Constraint: Existing task class remains ProductTask to avoid broad API churn beyond the requested file and script naming

Rejected: Rename ProductTask class now | would expand the change into a larger API update across tests and task dispatch

Confidence: high

Scope-risk: narrow

Directive: Keep patrol-delete script paths under app/amazon/scripts/patrol_delete when adding new helper scripts

Tested: uv run pytest tests/test_product.py

Not-tested: Remote push before this commit due previous SSH publickey failure
This commit is contained in:
koko
2026-04-27 17:58:40 +08:00
parent 1aca3d6152
commit 9146d17625
15 changed files with 17 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
from amazon.product import InventoryManage, ProductTask
from amazon.patrol_delete import InventoryManage, ProductTask
def test_product_task_post_result_builds_patrol_delete_payload(monkeypatch):
@@ -14,7 +14,7 @@ def test_product_task_post_result_builds_patrol_delete_payload(monkeypatch):
return Response()
monkeypatch.setattr("config.DELETE_BRAND_API_BASE", "http://java.example")
monkeypatch.setattr("amazon.product.requests.post", fake_post)
monkeypatch.setattr("amazon.patrol_delete.requests.post", fake_post)
country_sections = [
{