mlbstats/api/test/api_awards_test.go

65 lines
1.3 KiB
Go

/*
Stats API Documentation
Testing AwardsAPIService
*/
// 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_AwardsAPIService(t *testing.T) {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
t.Run("Test AwardsAPIService AwardRecipients", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var awardId interface{}
httpRes, err := apiClient.AwardsAPI.AwardRecipients(context.Background(), awardId).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test AwardsAPIService Awards", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var awardId interface{}
httpRes, err := apiClient.AwardsAPI.Awards(context.Background(), awardId).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test AwardsAPIService Awards1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var awardId interface{}
httpRes, err := apiClient.AwardsAPI.Awards1(context.Background(), awardId).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
}