package profit_ranking

import (
	"ai_scheduler/internal/config"
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestClient_Call(t *testing.T) {
	cfg := config.ToolConfig{
		BaseURL: "http://test.analysis.com/api/dataanalytics/profitRankingSum",
		APIKey:  "test_jwt_token",
	}

	client := New(cfg)
	assert.NotNil(t, client)

	req := ProfitRankingRequest{
		Ct:          []string{"2025-01-01 00:00:00", "2025-01-01 23:59:59"},
		ResellerIds: []string{"1001", "1002"},
	}

	t.Logf("Testing Call with req: %+v", req)
	// _, err := client.Call(context.Background(), req)
	// assert.Error(t, err)
}
