(t *testing.T)
| 10192 | } |
| 10193 | |
| 10194 | func TestChatCostSummary(t *testing.T) { |
| 10195 | t.Parallel() |
| 10196 | |
| 10197 | t.Run("BasicSummary", func(t *testing.T) { |
| 10198 | t.Parallel() |
| 10199 | |
| 10200 | f := seedChatCostFixture(t) |
| 10201 | ctx := testutil.Context(t, testutil.WaitLong) |
| 10202 | |
| 10203 | // Use a window derived from DB timestamps to avoid time boundary flakes. |
| 10204 | summary, err := f.Client.GetChatCostSummary(ctx, "me", f.safeOptions()) |
| 10205 | require.NoError(t, err) |
| 10206 | assertChatCostSummary(t, summary, f.ModelConfigID, f.ChatID) |
| 10207 | }) |
| 10208 | } |
| 10209 | |
| 10210 | func TestChatCostSummary_AfterModelDeletion(t *testing.T) { |
| 10211 | t.Parallel() |
nothing calls this directly
no test coverage detected