some
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
|
||||
"cloud.o-forge.io/core/oc-lib/models/resources/resource_model"
|
||||
"cloud.o-forge.io/core/oc-lib/models/utils"
|
||||
"cloud.o-forge.io/core/oc-lib/tools"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
@@ -25,7 +26,7 @@ func TestStoreOneData(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
dma := New()
|
||||
dma := New(tools.DATA_RESOURCE, "", nil, nil)
|
||||
id, _, _ := dma.StoreOne(&d)
|
||||
|
||||
assert.NotEmpty(t, id)
|
||||
@@ -47,7 +48,7 @@ func TestLoadOneDate(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
dma := New()
|
||||
dma := New(tools.DATA_RESOURCE, "", nil, nil)
|
||||
new_d, _, _ := dma.StoreOne(&d)
|
||||
assert.Equal(t, d, new_d)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user