2023-05-16 01:12:07 +00:00
|
|
|
package initialize_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
2023-05-16 04:01:55 +00:00
|
|
|
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/initialize"
|
2023-05-16 01:12:07 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestNewServices(t *testing.T) {
|
|
|
|
configuration := setDefaultTestingENV(t)
|
|
|
|
|
|
|
|
t.Run("Сервисы должны успешно инициализироваться", func(t *testing.T) {
|
|
|
|
assert.NotPanics(t, func() {
|
|
|
|
services := initialize.NewServices(&initialize.ServicesDeps{
|
|
|
|
Config: &configuration.Service,
|
|
|
|
Clients: &initialize.Clients{},
|
|
|
|
Repositories: &initialize.Repositories{},
|
|
|
|
})
|
|
|
|
|
|
|
|
assert.NotNil(t, services)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|