2024-04-10 22:18:44 +03:00
|
|
|
/*
|
|
|
|
Monobank open API
|
|
|
|
|
|
|
|
Testing DefaultApiService
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2024-04-10 22:21:45 +03:00
|
|
|
// Code generated by OpenAPI Generator (https://monobank-generator.tech);
|
2024-04-10 22:18:44 +03:00
|
|
|
|
|
|
|
package monobank
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2024-04-10 22:21:45 +03:00
|
|
|
monobankclient "gitea.stuzer.link/stuzer05/go-monobank"
|
2024-04-10 22:18:44 +03:00
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
2024-04-10 22:21:45 +03:00
|
|
|
func Test_monobank_DefaultApiService(t *testing.T) {
|
2024-04-10 22:18:44 +03:00
|
|
|
|
2024-04-10 22:21:45 +03:00
|
|
|
configuration := monobankclient.NewConfiguration()
|
|
|
|
apiClient := monobankclient.NewAPIClient(configuration)
|
2024-04-10 22:18:44 +03:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|