mlbstats/api/test/api_league_test.go

197 lines
4.6 KiB
Go
Raw Normal View History

2025-04-06 23:39:04 +00:00
/*
2025-04-07 02:59:20 +00:00
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
2025-04-06 23:39:04 +00:00
Stats API Documentation
Testing LeagueAPIService
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
package api
import (
2025-04-07 02:14:30 +00:00
openapiclient "//"
2025-04-06 23:39:04 +00:00
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
)
func Test_api_LeagueAPIService(t *testing.T) {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
t.Run("Test LeagueAPIService AllStarBallot", func(t *testing.T) {
2025-04-07 02:14:30 +00:00
t.Skip("skip test") // remove to run test
2025-04-06 23:39:04 +00:00
var leagueId interface{}
httpRes, err := apiClient.LeagueAPI.AllStarBallot(context.Background(), leagueId).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test LeagueAPIService AllStarBallot1", func(t *testing.T) {
2025-04-07 02:14:30 +00:00
t.Skip("skip test") // remove to run test
2025-04-06 23:39:04 +00:00
var leagueId interface{}
httpRes, err := apiClient.LeagueAPI.AllStarBallot1(context.Background(), leagueId).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test LeagueAPIService AllStarBallot2", func(t *testing.T) {
2025-04-07 02:14:30 +00:00
t.Skip("skip test") // remove to run test
2025-04-06 23:39:04 +00:00
var leagueId interface{}
httpRes, err := apiClient.LeagueAPI.AllStarBallot2(context.Background(), leagueId).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test LeagueAPIService AllStarBallot3", func(t *testing.T) {
2025-04-07 02:14:30 +00:00
t.Skip("skip test") // remove to run test
2025-04-06 23:39:04 +00:00
var leagueId interface{}
httpRes, err := apiClient.LeagueAPI.AllStarBallot3(context.Background(), leagueId).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test LeagueAPIService AllStarFinalVote", func(t *testing.T) {
2025-04-07 02:14:30 +00:00
t.Skip("skip test") // remove to run test
2025-04-06 23:39:04 +00:00
var leagueId interface{}
httpRes, err := apiClient.LeagueAPI.AllStarFinalVote(context.Background(), leagueId).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test LeagueAPIService AllStarFinalVote1", func(t *testing.T) {
2025-04-07 02:14:30 +00:00
t.Skip("skip test") // remove to run test
2025-04-06 23:39:04 +00:00
var leagueId interface{}
httpRes, err := apiClient.LeagueAPI.AllStarFinalVote1(context.Background(), leagueId).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test LeagueAPIService AllStarWriteIns", func(t *testing.T) {
2025-04-07 02:14:30 +00:00
t.Skip("skip test") // remove to run test
2025-04-06 23:39:04 +00:00
var leagueId interface{}
httpRes, err := apiClient.LeagueAPI.AllStarWriteIns(context.Background(), leagueId).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test LeagueAPIService AllStarWriteIns1", func(t *testing.T) {
2025-04-07 02:14:30 +00:00
t.Skip("skip test") // remove to run test
2025-04-06 23:39:04 +00:00
var leagueId interface{}
httpRes, err := apiClient.LeagueAPI.AllStarWriteIns1(context.Background(), leagueId).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test LeagueAPIService League", func(t *testing.T) {
2025-04-07 02:14:30 +00:00
t.Skip("skip test") // remove to run test
2025-04-06 23:39:04 +00:00
var leagueId interface{}
httpRes, err := apiClient.LeagueAPI.League(context.Background(), leagueId).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test LeagueAPIService League1", func(t *testing.T) {
2025-04-07 02:14:30 +00:00
t.Skip("skip test") // remove to run test
2025-04-06 23:39:04 +00:00
var leagueId interface{}
httpRes, err := apiClient.LeagueAPI.League1(context.Background(), leagueId).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test LeagueAPIService League2", func(t *testing.T) {
2025-04-07 02:14:30 +00:00
t.Skip("skip test") // remove to run test
2025-04-06 23:39:04 +00:00
var leagueId interface{}
httpRes, err := apiClient.LeagueAPI.League2(context.Background(), leagueId).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test LeagueAPIService League3", func(t *testing.T) {
2025-04-07 02:14:30 +00:00
t.Skip("skip test") // remove to run test
2025-04-06 23:39:04 +00:00
var leagueId interface{}
httpRes, err := apiClient.LeagueAPI.League3(context.Background(), leagueId).Execute()
require.Nil(t, err)
assert.Equal(t, 200, httpRes.StatusCode)
})
}