mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
fix(backend): update platform_cost_test to expect masked email in dashboard
_mask_email() is applied to by_user emails in get_platform_cost_dashboard(). Test now asserts 'a***@b.com' instead of 'a@b.com'.
This commit is contained in:
@@ -184,7 +184,7 @@ class TestGetPlatformCostDashboard:
|
||||
assert dashboard.by_provider[0].tracking_type == "tokens"
|
||||
assert dashboard.by_provider[0].total_duration_seconds == 10.5
|
||||
assert len(dashboard.by_user) == 1
|
||||
assert dashboard.by_user[0].email == "a@b.com"
|
||||
assert dashboard.by_user[0].email == "a***@b.com"
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_returns_empty_dashboard(self):
|
||||
|
||||
Reference in New Issue
Block a user