138 lines
3.0 KiB
Go
138 lines
3.0 KiB
Go
/*
|
|
Stats API Documentation
|
|
|
|
Testing PersonAPIService
|
|
|
|
*/
|
|
|
|
// 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_PersonAPIService(t *testing.T) {
|
|
|
|
configuration := openapiclient.NewConfiguration()
|
|
apiClient := openapiclient.NewAPIClient(configuration)
|
|
|
|
t.Run("Test PersonAPIService Award", func(t *testing.T) {
|
|
|
|
t.Skip("skip test") // remove to run test
|
|
|
|
var personId interface{}
|
|
|
|
httpRes, err := apiClient.PersonAPI.Award(context.Background(), personId).Execute()
|
|
|
|
require.Nil(t, err)
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
})
|
|
|
|
t.Run("Test PersonAPIService CurrentGameStats", func(t *testing.T) {
|
|
|
|
t.Skip("skip test") // remove to run test
|
|
|
|
httpRes, err := apiClient.PersonAPI.CurrentGameStats(context.Background()).Execute()
|
|
|
|
require.Nil(t, err)
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
})
|
|
|
|
t.Run("Test PersonAPIService FreeAgents", func(t *testing.T) {
|
|
|
|
t.Skip("skip test") // remove to run test
|
|
|
|
httpRes, err := apiClient.PersonAPI.FreeAgents(context.Background()).Execute()
|
|
|
|
require.Nil(t, err)
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
})
|
|
|
|
t.Run("Test PersonAPIService Person", func(t *testing.T) {
|
|
|
|
t.Skip("skip test") // remove to run test
|
|
|
|
var personId interface{}
|
|
|
|
httpRes, err := apiClient.PersonAPI.Person(context.Background(), personId).Execute()
|
|
|
|
require.Nil(t, err)
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
})
|
|
|
|
t.Run("Test PersonAPIService Person1", func(t *testing.T) {
|
|
|
|
t.Skip("skip test") // remove to run test
|
|
|
|
var personId interface{}
|
|
|
|
httpRes, err := apiClient.PersonAPI.Person1(context.Background(), personId).Execute()
|
|
|
|
require.Nil(t, err)
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
})
|
|
|
|
t.Run("Test PersonAPIService PlayerGameStats", func(t *testing.T) {
|
|
|
|
t.Skip("skip test") // remove to run test
|
|
|
|
var personId interface{}
|
|
var gamePk interface{}
|
|
|
|
httpRes, err := apiClient.PersonAPI.PlayerGameStats(context.Background(), personId, gamePk).Execute()
|
|
|
|
require.Nil(t, err)
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
})
|
|
|
|
t.Run("Test PersonAPIService Search", func(t *testing.T) {
|
|
|
|
t.Skip("skip test") // remove to run test
|
|
|
|
httpRes, err := apiClient.PersonAPI.Search(context.Background()).Execute()
|
|
|
|
require.Nil(t, err)
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
})
|
|
|
|
t.Run("Test PersonAPIService Stats3", func(t *testing.T) {
|
|
|
|
t.Skip("skip test") // remove to run test
|
|
|
|
var personId interface{}
|
|
|
|
httpRes, err := apiClient.PersonAPI.Stats3(context.Background(), personId).Execute()
|
|
|
|
require.Nil(t, err)
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
})
|
|
|
|
t.Run("Test PersonAPIService StatsMetrics", func(t *testing.T) {
|
|
|
|
t.Skip("skip test") // remove to run test
|
|
|
|
var personId interface{}
|
|
|
|
httpRes, err := apiClient.PersonAPI.StatsMetrics(context.Background(), personId).Execute()
|
|
|
|
require.Nil(t, err)
|
|
assert.Equal(t, 200, httpRes.StatusCode)
|
|
|
|
})
|
|
|
|
}
|