Backend: Add test fixtures for labels
This commit is contained in:
parent
6188c7f736
commit
9234c5797a
1 changed files with 51 additions and 0 deletions
|
@ -22,6 +22,57 @@ var LabelFixtures = map[string]Label{
|
|||
DeletedAt: nil,
|
||||
New: false,
|
||||
},
|
||||
"flower": {
|
||||
ID: 1000001,
|
||||
LabelUUID: "lt9k3pw1wowuy3c3",
|
||||
LabelSlug: "flower",
|
||||
CustomSlug: "flower",
|
||||
LabelName: "Flower",
|
||||
LabelPriority: 1,
|
||||
LabelFavorite: true,
|
||||
LabelDescription: "",
|
||||
LabelNotes: "",
|
||||
LabelCategories: []*Label{},
|
||||
Links: []Link{},
|
||||
CreatedAt: time.Now(),
|
||||
UpdatedAt: time.Now(),
|
||||
DeletedAt: nil,
|
||||
New: false,
|
||||
},
|
||||
"cake": {
|
||||
ID: 1000002,
|
||||
LabelUUID: "lt9k3pw1wowuy3c4",
|
||||
LabelSlug: "cake",
|
||||
CustomSlug: "kuchen",
|
||||
LabelName: "Cake",
|
||||
LabelPriority: 5,
|
||||
LabelFavorite: false,
|
||||
LabelDescription: "",
|
||||
LabelNotes: "",
|
||||
LabelCategories: []*Label{},
|
||||
Links: []Link{},
|
||||
CreatedAt: time.Now(),
|
||||
UpdatedAt: time.Now(),
|
||||
DeletedAt: nil,
|
||||
New: false,
|
||||
},
|
||||
"cow": {
|
||||
ID: 1000003,
|
||||
LabelUUID: "lt9k3pw1wowuy3c5",
|
||||
LabelSlug: "cow",
|
||||
CustomSlug: "kuh",
|
||||
LabelName: "Cow",
|
||||
LabelPriority: -1,
|
||||
LabelFavorite: true,
|
||||
LabelDescription: "",
|
||||
LabelNotes: "",
|
||||
LabelCategories: []*Label{},
|
||||
Links: []Link{},
|
||||
CreatedAt: time.Now(),
|
||||
UpdatedAt: time.Now(),
|
||||
DeletedAt: nil,
|
||||
New: false,
|
||||
},
|
||||
}
|
||||
|
||||
// CreateLabelFixtures inserts known entities into the database for testing.
|
||||
|
|
Loading…
Reference in a new issue