Files
portal/openapi/test/api_card_test.go
2026-08-04 15:28:33 +02:00

66 lines
1.4 KiB
Go

/*
FastAPI
Testing CardAPIService
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
package openapi
import (
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func Test_openapi_CardAPIService(t *testing.T) {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
t.Run("Test CardAPIService AddCardCardsGroupIdPost", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var groupId int32
resp, httpRes, err := apiClient.CardAPI.AddCardCardsGroupIdPost(context.Background(), groupId).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test CardAPIService DelCardCardsDeleteGet", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.CardAPI.DelCardCardsDeleteGet(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test CardAPIService GetCardsCardsGroupIdGet", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var groupId int32
resp, httpRes, err := apiClient.CardAPI.GetCardsCardsGroupIdGet(context.Background(), groupId).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
}