63 lines
1.3 KiB
Go
63 lines
1.3 KiB
Go
/*
|
|
Stats API Documentation
|
|
|
|
Testing SeasonAPIService
|
|
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
|
|
|
package api
|
|
|
|
import (
|
|
openapiclient "//"
|
|
"context"
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
"testing"
|
|
)
|
|
|
|
func Test_api_SeasonAPIService(t *testing.T) {
|
|
|
|
configuration := openapiclient.NewConfiguration()
|
|
apiClient := openapiclient.NewAPIClient(configuration)
|
|
|
|
t.Run("Test SeasonAPIService AllSeasons", func(t *testing.T) {
|
|
|
|
t.Skip("skip test") // remove to run test
|
|
|
|
httpRes, err := apiClient.SeasonAPI.AllSeasons(context.Background()).Execute()
|
|
|
|
require.Nil(t, err)
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
})
|
|
|
|
t.Run("Test SeasonAPIService Seasons", func(t *testing.T) {
|
|
|
|
t.Skip("skip test") // remove to run test
|
|
|
|
var seasonId interface{}
|
|
|
|
httpRes, err := apiClient.SeasonAPI.Seasons(context.Background(), seasonId).Execute()
|
|
|
|
require.Nil(t, err)
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
})
|
|
|
|
t.Run("Test SeasonAPIService Seasons1", func(t *testing.T) {
|
|
|
|
t.Skip("skip test") // remove to run test
|
|
|
|
var seasonId interface{}
|
|
|
|
httpRes, err := apiClient.SeasonAPI.Seasons1(context.Background(), seasonId).Execute()
|
|
|
|
require.Nil(t, err)
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
})
|
|
|
|
}
|