forked from toolshed/abra
test: remove duplicate call to EnsureCatalogue
This commit is contained in:
@ -5,18 +5,11 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"coopcloud.tech/abra/pkg/catalogue"
|
||||
"coopcloud.tech/abra/pkg/config"
|
||||
"coopcloud.tech/abra/pkg/recipe"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func setup(t *testing.T) {
|
||||
if err := catalogue.EnsureCatalogue(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestNewApp(t *testing.T) {
|
||||
app, err := config.NewApp(ExpectedAppEnv, AppName, ExpectedAppFile)
|
||||
if err != nil {
|
||||
@ -48,8 +41,6 @@ func TestGetApp(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetComposeFiles(t *testing.T) {
|
||||
setup(t)
|
||||
|
||||
offline := true
|
||||
r, err := recipe.Get("abra-integration-test-recipe", offline)
|
||||
if err != nil {
|
||||
@ -97,8 +88,6 @@ func TestGetComposeFiles(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetComposeFilesError(t *testing.T) {
|
||||
setup(t)
|
||||
|
||||
offline := true
|
||||
r, err := recipe.Get("abra-integration-test-recipe", offline)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user