mlbstats/api/test/api_predictions_test.go

48 lines
994 B
Go

/*
Stats API Documentation
Testing PredictionsAPIService
*/
// 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_PredictionsAPIService(t *testing.T) {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
t.Run("Test PredictionsAPIService GetProps", func(t *testing.T) {
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.PredictionsAPI.GetProps(context.Background()).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test PredictionsAPIService GetPropsAdjust", func(t *testing.T) {
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.PredictionsAPI.GetPropsAdjust(context.Background()).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
}