mlbstats/api/test/api_venues_test.go

67 lines
1.6 KiB
Go

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