mlbstats/api/test/api_weather_test.go

80 lines
1.7 KiB
Go
Raw Normal View History

2025-04-06 23:39:04 +00:00
/*
Stats API Documentation
Testing WeatherAPIService
*/
// 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_WeatherAPIService(t *testing.T) {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
t.Run("Test WeatherAPIService WeatherBasic", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var venueId interface{}
httpRes, err := apiClient.WeatherAPI.WeatherBasic(context.Background(), venueId).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test WeatherAPIService WeatherDataBasedOnPlay", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var gamePk interface{}
var playId interface{}
httpRes, err := apiClient.WeatherAPI.WeatherDataBasedOnPlay(context.Background(), gamePk, playId).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test WeatherAPIService WeatherForecast", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var gamePk interface{}
var roofType interface{}
httpRes, err := apiClient.WeatherAPI.WeatherForecast(context.Background(), gamePk, roofType).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test WeatherAPIService WeatherFull", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var venueId interface{}
httpRes, err := apiClient.WeatherAPI.WeatherFull(context.Background(), venueId).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
}