37 lines
786 B
Go
37 lines
786 B
Go
/*
|
|
|
|
Testing RankAPIService
|
|
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
|
|
|
package answer_sdk
|
|
|
|
import (
|
|
"context"
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
"testing"
|
|
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
|
)
|
|
|
|
func Test_answer_sdk_RankAPIService(t *testing.T) {
|
|
|
|
configuration := openapiclient.NewConfiguration()
|
|
apiClient := openapiclient.NewAPIClient(configuration)
|
|
|
|
t.Run("Test RankAPIService AnswerApiV1PersonalRankPageGet", func(t *testing.T) {
|
|
|
|
t.Skip("skip test") // remove to run test
|
|
|
|
resp, httpRes, err := apiClient.RankAPI.AnswerApiV1PersonalRankPageGet(context.Background()).Execute()
|
|
|
|
require.Nil(t, err)
|
|
require.NotNil(t, resp)
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
})
|
|
|
|
}
|