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:
Zamil Majdy
2026-04-07 18:02:00 +07:00
parent bbdf13c7a8
commit 7c685c6677

View File

@@ -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):