更新文档内容
This commit is contained in:
@@ -1,32 +1,31 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
Testing ApiAnswerApiService
|
||||
Testing ApiAnswerAPIService
|
||||
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"context"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
openapiclient "git.ncc.cx/package/openapi-go-answer"
|
||||
)
|
||||
|
||||
func Test_openapi_ApiAnswerApiService(t *testing.T) {
|
||||
func Test_answer_sdk_ApiAnswerAPIService(t *testing.T) {
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
|
||||
t.Run("Test ApiAnswerApiService AnswerApiV1AnswerAcceptancePost", func(t *testing.T) {
|
||||
t.Run("Test ApiAnswerAPIService AnswerApiV1AnswerAcceptancePost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerAcceptancePost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerAcceptancePost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -34,11 +33,11 @@ func Test_openapi_ApiAnswerApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test ApiAnswerApiService AnswerApiV1AnswerDelete", func(t *testing.T) {
|
||||
t.Run("Test ApiAnswerAPIService AnswerApiV1AnswerDelete", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerDelete(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerDelete(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -46,11 +45,11 @@ func Test_openapi_ApiAnswerApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test ApiAnswerApiService AnswerApiV1AnswerInfoGet", func(t *testing.T) {
|
||||
t.Run("Test ApiAnswerAPIService AnswerApiV1AnswerInfoGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerInfoGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerInfoGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -58,11 +57,11 @@ func Test_openapi_ApiAnswerApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test ApiAnswerApiService AnswerApiV1AnswerPageGet", func(t *testing.T) {
|
||||
t.Run("Test ApiAnswerAPIService AnswerApiV1AnswerPageGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPageGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerPageGet(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -70,11 +69,11 @@ func Test_openapi_ApiAnswerApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test ApiAnswerApiService AnswerApiV1AnswerPost", func(t *testing.T) {
|
||||
t.Run("Test ApiAnswerAPIService AnswerApiV1AnswerPost", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPost(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerPost(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
@@ -82,23 +81,11 @@ func Test_openapi_ApiAnswerApiService(t *testing.T) {
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test ApiAnswerApiService AnswerApiV1AnswerPut", func(t *testing.T) {
|
||||
t.Run("Test ApiAnswerAPIService AnswerApiV1AnswerPut", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
assert.Equal(t, 200, httpRes.StatusCode)
|
||||
|
||||
})
|
||||
|
||||
t.Run("Test ApiAnswerApiService AnswerApiV1PersonalAnswerPageGet", func(t *testing.T) {
|
||||
|
||||
t.Skip("skip test") // remove to run test
|
||||
|
||||
resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1PersonalAnswerPageGet(context.Background()).Execute()
|
||||
resp, httpRes, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerPut(context.Background()).Execute()
|
||||
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
Reference in New Issue
Block a user