From 02ddfc7a76385ba6a37f186254bd51122f8338dc Mon Sep 17 00:00:00 2001 From: koko Date: Mon, 27 Apr 2026 17:59:46 +0800 Subject: [PATCH] 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 --- app/tests/{test_product.py => test_patrol_delete.py} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename app/tests/{test_product.py => test_patrol_delete.py} (99%) diff --git a/app/tests/test_product.py b/app/tests/test_patrol_delete.py similarity index 99% rename from app/tests/test_product.py rename to app/tests/test_patrol_delete.py index 273f0ef..4afd51a 100644 --- a/app/tests/test_product.py +++ b/app/tests/test_patrol_delete.py @@ -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()