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:
@@ -1,7 +1,7 @@
|
|||||||
from amazon.patrol_delete import InventoryManage, ProductTask
|
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 = {}
|
captured = {}
|
||||||
|
|
||||||
class Response:
|
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:郭亚芳:")
|
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
|
from config import runing_shop, runing_task
|
||||||
|
|
||||||
runing_task.clear()
|
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 = []
|
calls = []
|
||||||
|
|
||||||
def fake_post_result(self, **kwargs):
|
def fake_post_result(self, **kwargs):
|
||||||
@@ -181,7 +181,7 @@ def test_product_task_process_task_skips_missing_required_data(monkeypatch):
|
|||||||
assert calls == []
|
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
|
from config import runing_shop, runing_task
|
||||||
|
|
||||||
runing_task.clear()
|
runing_task.clear()
|
||||||
Reference in New Issue
Block a user