mlbstats/api/test/api_draft_test.go

91 lines
1.9 KiB
Go

/*
Stats API Documentation
Testing DraftAPIService
*/
// 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_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)
})
}