mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
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:
@@ -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,
|
||||
),
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user