77 lines
1.8 KiB
Go
77 lines
1.8 KiB
Go
/*
|
|
Monobank open API
|
|
|
|
Testing DefaultApiService
|
|
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://monobank-generator.tech);
|
|
|
|
package monobank
|
|
|
|
import (
|
|
"context"
|
|
monobankclient "gitea.stuzer.link/stuzer05/go-monobank"
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
"testing"
|
|
)
|
|
|
|
func Test_monobank_DefaultApiService(t *testing.T) {
|
|
|
|
configuration := monobankclient.NewConfiguration()
|
|
apiClient := monobankclient.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)
|
|
|
|
})
|
|
|
|
}
|