fmt
This commit is contained in:
parent
c97a4d74cb
commit
2c12797111
1 changed files with 4 additions and 5 deletions
|
@ -1,8 +1,8 @@
|
||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestList_Create(t *testing.T) {
|
func TestList_Create(t *testing.T) {
|
||||||
|
@ -28,7 +28,7 @@ func TestList_Create(t *testing.T) {
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
||||||
// Get the list
|
// Get the list
|
||||||
newdummy := List{ID:dummylist.ID}
|
newdummy := List{ID: dummylist.ID}
|
||||||
err = newdummy.ReadOne()
|
err = newdummy.ReadOne()
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
assert.Equal(t, dummylist.Title, newdummy.Title)
|
assert.Equal(t, dummylist.Title, newdummy.Title)
|
||||||
|
@ -50,7 +50,6 @@ func TestList_Create(t *testing.T) {
|
||||||
err = dummylist.Delete()
|
err = dummylist.Delete()
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
||||||
|
|
||||||
// Check creation with a nonexistant namespace
|
// Check creation with a nonexistant namespace
|
||||||
list3 := List{
|
list3 := List{
|
||||||
Title: "test",
|
Title: "test",
|
||||||
|
|
Loading…
Reference in a new issue