77 lines
1.8 KiB
Go
77 lines
1.8 KiB
Go
|
/*
|
||
|
Monobank open API
|
||
|
|
||
|
Testing DefaultApiService
|
||
|
|
||
|
*/
|
||
|
|
||
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
|
||
|
|
||
|
package monobank
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
openapiclient "gitea.stuzer.link/stuzer05/go-monobank"
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
"github.com/stretchr/testify/require"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func Test_openapi_DefaultApiService(t *testing.T) {
|
||
|
|
||
|
configuration := openapiclient.NewConfiguration()
|
||
|
apiClient := openapiclient.NewAPIClient(configuration)
|
||
|
|
||
|
t.Run("Test DefaultApiService BankCurrencyGet", func(t *testing.T) {
|
||
|
|
||
|
t.Skip("skip test") // remove to run test
|
||
|
|
||
|
resp, httpRes, err := apiClient.DefaultApi.BankCurrencyGet(context.Background()).Execute()
|
||
|
|
||
|
require.Nil(t, err)
|
||
|
require.NotNil(t, resp)
|
||
|
assert.Equal(t, 200, httpRes.StatusCode)
|
||
|
|
||
|
})
|
||
|
|
||
|
t.Run("Test DefaultApiService PersonalClientInfoGet", func(t *testing.T) {
|
||
|
|
||
|
t.Skip("skip test") // remove to run test
|
||
|
|
||
|
resp, httpRes, err := apiClient.DefaultApi.PersonalClientInfoGet(context.Background()).Execute()
|
||
|
|
||
|
require.Nil(t, err)
|
||
|
require.NotNil(t, resp)
|
||
|
assert.Equal(t, 200, httpRes.StatusCode)
|
||
|
|
||
|
})
|
||
|
|
||
|
t.Run("Test DefaultApiService PersonalStatementAccountFromToGet", func(t *testing.T) {
|
||
|
|
||
|
t.Skip("skip test") // remove to run test
|
||
|
|
||
|
var account string
|
||
|
var from string
|
||
|
var to string
|
||
|
|
||
|
resp, httpRes, err := apiClient.DefaultApi.PersonalStatementAccountFromToGet(context.Background(), account, from, to).Execute()
|
||
|
|
||
|
require.Nil(t, err)
|
||
|
require.NotNil(t, resp)
|
||
|
assert.Equal(t, 200, httpRes.StatusCode)
|
||
|
|
||
|
})
|
||
|
|
||
|
t.Run("Test DefaultApiService PersonalWebhookPost", func(t *testing.T) {
|
||
|
|
||
|
t.Skip("skip test") // remove to run test
|
||
|
|
||
|
httpRes, err := apiClient.DefaultApi.PersonalWebhookPost(context.Background()).Execute()
|
||
|
|
||
|
require.Nil(t, err)
|
||
|
assert.Equal(t, 200, httpRes.StatusCode)
|
||
|
|
||
|
})
|
||
|
|
||
|
}
|