go-monobank/test/api__test.go

77 lines
1.8 KiB
Go
Raw Normal View History

2024-04-10 22:18:44 +03:00
/*
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)
})
}