fix(backend): update token_tracking_test mock targets after _schedule_log refactor

After extracting _schedule_log into schedule_cost_log() in platform_cost.py,
token_tracking no longer has log_platform_cost_safe as an attribute.
Update patch targets to backend.data.platform_cost.log_platform_cost_safe.
This commit is contained in:
Zamil Majdy
2026-04-06 21:37:38 +07:00
parent 0365a26c85
commit 181208528f

View File

@@ -298,7 +298,7 @@ class TestPlatformCostLogging:
new_callable=AsyncMock,
),
patch(
"backend.copilot.token_tracking.log_platform_cost_safe",
"backend.data.platform_cost.log_platform_cost_safe",
new=mock_log,
),
):
@@ -337,7 +337,7 @@ class TestPlatformCostLogging:
new_callable=AsyncMock,
),
patch(
"backend.copilot.token_tracking.log_platform_cost_safe",
"backend.data.platform_cost.log_platform_cost_safe",
new=mock_log,
),
):
@@ -368,7 +368,7 @@ class TestPlatformCostLogging:
new_callable=AsyncMock,
),
patch(
"backend.copilot.token_tracking.log_platform_cost_safe",
"backend.data.platform_cost.log_platform_cost_safe",
new=mock_log,
),
):
@@ -391,7 +391,7 @@ class TestPlatformCostLogging:
new_callable=AsyncMock,
),
patch(
"backend.copilot.token_tracking.log_platform_cost_safe",
"backend.data.platform_cost.log_platform_cost_safe",
new=mock_log,
),
):
@@ -418,7 +418,7 @@ class TestPlatformCostLogging:
new_callable=AsyncMock,
),
patch(
"backend.copilot.token_tracking.log_platform_cost_safe",
"backend.data.platform_cost.log_platform_cost_safe",
new=mock_log,
),
):
@@ -445,7 +445,7 @@ class TestPlatformCostLogging:
new_callable=AsyncMock,
),
patch(
"backend.copilot.token_tracking.log_platform_cost_safe",
"backend.data.platform_cost.log_platform_cost_safe",
new=mock_log,
),
):
@@ -470,7 +470,7 @@ class TestPlatformCostLogging:
new_callable=AsyncMock,
),
patch(
"backend.copilot.token_tracking.log_platform_cost_safe",
"backend.data.platform_cost.log_platform_cost_safe",
new=mock_log,
),
):