Rename patrol delete tests

Keep the patrol deletion test module aligned with the renamed patrol_delete implementation and update test function names so future searches no longer point at the old product module name.

Constraint: This is a naming-only follow-up to the patrol_delete module rename

Confidence: high

Scope-risk: narrow

Tested: uv run pytest tests/test_patrol_delete.py
This commit is contained in:
koko
2026-04-27 17:59:46 +08:00
parent 9146d17625
commit 08997e9e20

View File

@@ -1,7 +1,7 @@
from amazon.patrol_delete import InventoryManage, ProductTask
def test_product_task_post_result_builds_patrol_delete_payload(monkeypatch):
def test_patrol_delete_task_post_result_builds_patrol_delete_payload(monkeypatch):
captured = {}
class Response:
@@ -50,7 +50,7 @@ def test_product_task_post_result_builds_patrol_delete_payload(monkeypatch):
assert captured["kwargs"]["json"]["shops"][0]["submissionId"].startswith("patrol-delete:3089:郭亚芳:")
def test_product_task_process_task_aggregates_country_results(monkeypatch):
def test_patrol_delete_task_process_task_aggregates_country_results(monkeypatch):
from config import runing_shop, runing_task
runing_task.clear()
@@ -167,7 +167,7 @@ def test_product_task_process_task_aggregates_country_results(monkeypatch):
]
def test_product_task_process_task_skips_missing_required_data(monkeypatch):
def test_patrol_delete_task_process_task_skips_missing_required_data(monkeypatch):
calls = []
def fake_post_result(self, **kwargs):
@@ -181,7 +181,7 @@ def test_product_task_process_task_skips_missing_required_data(monkeypatch):
assert calls == []
def test_product_task_reports_shop_error(monkeypatch):
def test_patrol_delete_task_reports_shop_error(monkeypatch):
from config import runing_shop, runing_task
runing_task.clear()