mlbstats/api/test/api_standings_test.go

52 lines
1.0 KiB
Go
Raw Normal View History

2025-04-06 23:39:04 +00:00
/*
Stats API Documentation
Testing StandingsAPIService
*/
// 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_StandingsAPIService(t *testing.T) {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
t.Run("Test StandingsAPIService Standings", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var standingsType interface{}
httpRes, err := apiClient.StandingsAPI.Standings(context.Background(), standingsType).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test StandingsAPIService Standings1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var standingsType interface{}
httpRes, err := apiClient.StandingsAPI.Standings1(context.Background(), standingsType).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
}