91 lines
1.9 KiB
Go
91 lines
1.9 KiB
Go
|
/*
|
||
|
Stats API Documentation
|
||
|
|
||
|
Testing DraftAPIService
|
||
|
|
||
|
*/
|
||
|
|
||
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||
|
|
||
|
package api
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
"github.com/stretchr/testify/require"
|
||
|
"testing"
|
||
|
openapiclient "//"
|
||
|
)
|
||
|
|
||
|
func Test_api_DraftAPIService(t *testing.T) {
|
||
|
|
||
|
configuration := openapiclient.NewConfiguration()
|
||
|
apiClient := openapiclient.NewAPIClient(configuration)
|
||
|
|
||
|
t.Run("Test DraftAPIService DraftPicks", func(t *testing.T) {
|
||
|
|
||
|
t.Skip("skip test") // remove to run test
|
||
|
|
||
|
var year interface{}
|
||
|
|
||
|
httpRes, err := apiClient.DraftAPI.DraftPicks(context.Background(), year).Execute()
|
||
|
|
||
|
require.Nil(t, err)
|
||
|
assert.Equal(t, 200, httpRes.StatusCode)
|
||
|
|
||
|
})
|
||
|
|
||
|
t.Run("Test DraftAPIService DraftPicks1", func(t *testing.T) {
|
||
|
|
||
|
t.Skip("skip test") // remove to run test
|
||
|
|
||
|
var year interface{}
|
||
|
|
||
|
httpRes, err := apiClient.DraftAPI.DraftPicks1(context.Background(), year).Execute()
|
||
|
|
||
|
require.Nil(t, err)
|
||
|
assert.Equal(t, 200, httpRes.StatusCode)
|
||
|
|
||
|
})
|
||
|
|
||
|
t.Run("Test DraftAPIService DraftProspects", func(t *testing.T) {
|
||
|
|
||
|
t.Skip("skip test") // remove to run test
|
||
|
|
||
|
var year interface{}
|
||
|
|
||
|
httpRes, err := apiClient.DraftAPI.DraftProspects(context.Background(), year).Execute()
|
||
|
|
||
|
require.Nil(t, err)
|
||
|
assert.Equal(t, 200, httpRes.StatusCode)
|
||
|
|
||
|
})
|
||
|
|
||
|
t.Run("Test DraftAPIService DraftProspects1", func(t *testing.T) {
|
||
|
|
||
|
t.Skip("skip test") // remove to run test
|
||
|
|
||
|
var year interface{}
|
||
|
|
||
|
httpRes, err := apiClient.DraftAPI.DraftProspects1(context.Background(), year).Execute()
|
||
|
|
||
|
require.Nil(t, err)
|
||
|
assert.Equal(t, 200, httpRes.StatusCode)
|
||
|
|
||
|
})
|
||
|
|
||
|
t.Run("Test DraftAPIService LatestDraftPicks", func(t *testing.T) {
|
||
|
|
||
|
t.Skip("skip test") // remove to run test
|
||
|
|
||
|
var year interface{}
|
||
|
|
||
|
httpRes, err := apiClient.DraftAPI.LatestDraftPicks(context.Background(), year).Execute()
|
||
|
|
||
|
require.Nil(t, err)
|
||
|
assert.Equal(t, 200, httpRes.StatusCode)
|
||
|
|
||
|
})
|
||
|
|
||
|
}
|